os2firefox Posted November 13, 2014 Share Posted November 13, 2014 Hello, I have just installed prestashop 1.6.0.9 to test it out. My server is on host gator for the demo. I've noticed that pages, some in the front office and most noticably on the admin side, get cached and require me to hit F5 to get the latest content. For example, I create an item and write the description(1). Then if I go do something else and come back to the item to change the description(2) and add a price, the description goes back to description(1) all of a sudden. I have narrowed this down to caching because if I refresh the page manually (F5), this does not happen. Caching and optimization is turned off in the admin > performance page and this happens in Chrome and Firefox... any thoughts? Link to comment Share on other sites More sharing options...
os2firefox Posted November 14, 2014 Author Share Posted November 14, 2014 I think this may have gotten fixed by selecting Force Compilation for Smarty > Template Compilation (in addition to turning off both caches and clearing the cache). However, is that a good practice for production sites? Link to comment Share on other sites More sharing options...
os2firefox Posted November 17, 2014 Author Share Posted November 17, 2014 Contacted my host and they had to add in the following to an .htaccess file in a parent directory: <FilesMatch "\.(php|cgi|pl|htm)$">ExpiresActive OffHeader set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"Header set Pragma "no-cache"</FilesMatch> Link to comment Share on other sites More sharing options...
Recommended Posts