Closed rrolla closed 10 years ago
It seems exceptionally persistant under latest versions of IE and FireFox. I've heard from Moc he had no problems while using Chrome.
This problem occurs in all browsers i test in every, add some new item but nothings shows while ctrl+f5 :(
Yeah the cache is definitely an issue that has been bugging me for months now as well. It has gotten better when using the latest files (compared to the alpha1 release). So I'd advise to use the latest files if you aren't already doing so.
I cannot confirm that using Chrome bypasses the issue at all, I'm just saying that I have far less cache issues at this point. Not sure why.
I've done some research. On my localhost (a Windows machine) with EasyPHP out of the box I have no issues. On my subscription to a (shared) Linux domain server I do have cache issues. Must be a PHP setting somewhere.
The details in differences can be found in this gist: https://gist.github.com/nlstart/b6a23f7a0f2430ceaf4a
That may be it! I'm testing/developing localhost here on a Windows machine using USBwebserver. Will try uploading v2 to a linux machine asap to check if I have caching issues there.
as long as i don't turn on the database caching everything is fine here. running on a linux / apache domain.
i think nlstart is right, probably a php or apache setting somewhere.
as long as i don't turn on the database caching
Where did you find this setting? In Settings > Cache it should only be possible to disable the content and system cache.
i ment content caching.
Also with settings > cache > disable content cache I have to use Ctrl+F5 in order to change the view to the correct settings at the theme manager 'change theme' option e107_admin/theme.php?mode=choose on a Linux host.
I just installed v2 fresh on a linux platform. Not getting the cache issues here either. Just posted up a news item, navigated to news and there it was. Also changed the theme back and forth, no need for an F5 or ctrl + F5.
Cache settings are enabled.
Let's see if we can narrow this down.
Go to Admin area > About > PHP info
, and let me know these settings:
under HTTP Headers Information
Here are my settings:
but I do see all these setting with the word 'cache' in them:
Also, my PHP info displays several warnings as well on the top of the screen: Warning allow_url_fopen: If you have Curl enabled, you should consider disabling this feature. allow_url_include: This is a security risk and is not needed by e107. display_errors: On a production server, it is better to disable the displaying of errors in the browser. register_globals: This is a security risk and should be disabled.
By the way, did you see my comment yesterday: https://gist.github.com/nlstart/b6a23f7a0f2430ceaf4a ? It has 2 files; one shows the complete Windows PHP settings, and one shows all the Linux settings.
I missed that Gist, thanks will check it out. The HTTP headers are quite essential for caching, so let's find a way to retrieve them. When using firefox, try this addon: https://addons.mozilla.org/nl/firefox/addon/http-header/
You should be able to find the information on HTTP response headers there.
@nlstart Any luck on those HTTP response headers Henk?
On Linux: Name Value Status 200 Status Text OK Server nginx/1.4.4 Date Fri, 17 Jan 2014 14:04:04 GMT Content-Type text/html; charset=utf-8 Expires Thu, 19 Nov 1981 08:52:00 GMT Cache-Control max-age=5,no-cache Last-Modified Mon, 13 Jan 2014 08:32:24 GMT Content-Encoding gzip
On Windows: Name Value Status 200 Status Text OK Date Fri, 17 Jan 2014 14:03:04 GMT Server Apache/2.4.4 (Win32) PHP/5.4.14 X-Powered-By PHP/5.4.14 Expires Thu, 19 Nov 1981 08:52:00 GMT Cache-Control max-age=5,no-cache Last-Modified Sun, 12 Jan 2014 20:52:16 GMT Etag "f9616ae3c592176ac94ccb0d84011cfc-gzip" Content-Length 123043 Keep-Alive timeout=5, max=100 Connection Keep-Alive Content-Type text/html; charset=utf-8 Content-Encoding gzip
Are there any new insights to this important problem to solve for linux servers?
Not on my end, sorry. I'm not actively working on e107 anymore ;)
Yeah this cache issue is also troubling my v2 installation on a new website provider using a Linux server. Just adding the following to the mix in the hopes it might help.
Our configuration is as follows: PHP Version 5.4.26
Name Value Status 200 Status Text OK Server nginx Date Tue, 29 Apr 2014 09:58:12 GMT Content-Type text/html; charset=utf-8 Vary Accept-Encoding Expires Thu, 19 Nov 1981 08:52:00 GMT Cache-Control must-revalidate X-Powered-By e107, PleskLin Last-Modified Tue, 29 Apr 2014 09:35:21 GMT Content-Encoding gzip Set-Cookie NewW_cookieSID=c8d1fd299db4c35719599fc7350e4bfc; expires=Tue, 29-Apr-2014 10:58:12 GMT; path=/; domain=.newworldsproject.net
Over the coming two weeks, the cache will be "fixed" by removing some bits and pieces that were added in which are likely to cause these issues. Basically, cache will be completely disabled for a while.
Thanks @Moc for your answer, now back to works ;)
Thanks for this important bug fix :) Now system works well :)
This problem is very annoying.
Every time if something added, some new news item, some menu reposition, some news edited, added new news record in admin panel, etc...nothings changed!
Change only if i reload hard with
ctrl+f5
cache settings disabled, enabled - the same :(
Can anyone accept this? :(