Search code examples
cachingnginxpagespeedmod-pagespeed

Google PageSpeed not updating cache


I have google's pagespeed installed with nginx server installed following here. I need to flush/delete the previous cached content but could not find a solution. On pagespeed site its mentioned to use this command:

touch /var/ngx_pagespeed_cache/cache.flush

But I have no success with it. Thanks for any help.


Solution

  • Is /var/ngx_pagespeed_cache your caching folder? If so, this should work. As Dayo noted, we do not delete the files, just invalidate them.

    However you can also just rm -r the caching folder and then reload Nginx (to clear the in-memory cache). If you are using memcached, you'd have to clear that too.