incubator-pagespeed-cpanel icon indicating copy to clipboard operation
incubator-pagespeed-cpanel copied to clipboard

Purge Pagespeed

Open lookingupdate opened this issue 10 years ago • 6 comments

The typical commands do not seem to work to clear cache, for instance:

sudo touch /var/cache/pagespeed/cache.flush

Does not work because it is not there. How do you purge pagespeed with this Cpanel version?

lookingupdate avatar Feb 01 '15 02:02 lookingupdate

That should work. I'm guessing the user you're executing that command with just doesn't have the right permissions to create the cache.flush file? FWIW, you can change the cache path, see docs: https://developers.google.com/speed/pagespeed/module/system

igrigorik avatar Feb 01 '15 18:02 igrigorik

I used shell as root so permissions are there. If I login as a user I will have to give sudo permissions which I will not to turn on and off. Just trying to find an easy way to purge the cache without too much drama.

I rudely forgot to thank you for the install package, I do not know why it is not a default in Easy Apache.

lookingupdate avatar Feb 01 '15 18:02 lookingupdate

@lookingupdate hmm, did you turn it on? Docs: https://developers.google.com/speed/pagespeed/module/system#flush_cache_legacy - looks like it's off by default in favor PURGE method.

igrigorik avatar Feb 01 '15 18:02 igrigorik

I did but it does not work with root, maybe I can only do it as a user. Thanks for your help though.

lookingupdate avatar Feb 01 '15 19:02 lookingupdate

What is the MPS version in question? The PURGE method is not on by default yet in 1.9 (latest beta & stable), so it should work to touch the cache.flush file. Are you sure you have the right filename? Check the FileCachePrefix in pagespeed.conf.

-Josh

On Sun, Feb 1, 2015 at 2:31 PM, lookingupdate [email protected] wrote:

I did but it does not work with root, maybe I can only do it as a user. Thanks for your help though.

— Reply to this email directly or view it on GitHub https://github.com/pagespeed/cpanel/issues/22#issuecomment-72379794.

jmarantz avatar Feb 01 '15 20:02 jmarantz

Senior moment: Correct and solved. I tested it without using the new correct path. I thank you both for your help.

lookingupdate avatar Feb 01 '15 21:02 lookingupdate