Jump to content

Disable Caching/ Mod_Pagespeed

Recommended Posts

Hi there, 


I've searched on Google and the this forum and couldn't find a solution to disable caching completely. 


I'm using 1.6.14 and having annoying caching both frontend and backend.


I can confirm that I've followed the instructions here 100% http://www.templatemonster.com/help/prestashop-1-6-x-how-to-clear-smarty-cache.html 


I disabled Smarty, CCC, and Caching (the option at the very bottom of the Performance setting) and deleted cache files in /cache/smarty/cache and compile. Also deleted cache in themes/my-theme/cache.


I cleared browser cache, load website in Private/ Incognito modes. Tried with IE, Chrome, FF, Opera.


Sadly, none of the solutions above helped.


My code does not reflect changes immediately and usually takes 30 minutes to see my changes.



After hours of Googling I found out that this seems to be caused by Apache Mod_Pagespeed. I have full control of VPS account. Can you tell me how to disable Mod_Pagespeed and re-enable it when my site goes live?





Share this post

Link to post
Share on other sites

Well, this is old thread, I stumbled on it from google but I think your issue is releated with file expiration headers in htaccess. Try to change the expiration dates of certain files in htaccess file.

Before You blame mod_pagespeed check if You are using it https://ismodpagespeedworking.com

If this is the issue and you have Ubuntu/Debian VPS then in console go to

sudo apt-get remove --purge mod-pagespeed-stable

and after that restart apache

service apache2 restart


Share this post

Link to post
Share on other sites

Hi everyone,

I faced the same problem today, and people usually say: "disable it!"  It should be last option. ;)

I solved like this:

  • Be sure about img folder permission. (In my case, the owner of img folder was root),
    • BTW, If there is an error about permissions, Prestashop says this you on Advanced Parameters > Info page.
    • If you see incorrect permission, you can re-set your file / folder permission. If you can't do this, you have to tell your hosting provider.
  • Then flush the cache and restart Apache:
    • # sudo touch /opt/bitnami/apache2/var/cache/mod_pagespeed/cache.flush
    • # sudo /opt/bitnami/ctlscript.sh restart apache

About permission: Usually directories have: 755 and files: 644, but for this issue you can need to set img folder permission as 777.

Good works!

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More