apache / incubator-pagespeed-cpanel

mod_pagespeed module for CPanel WHM
Other
144 stars 50 forks source link

Purge Pagespeed #22

Open lookingupdate opened 9 years ago

lookingupdate commented 9 years ago

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?

igrigorik commented 9 years ago

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

lookingupdate commented 9 years ago

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.

igrigorik commented 9 years ago

@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.

lookingupdate commented 9 years ago

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

jmarantz commented 9 years ago

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 notifications@github.com 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.

lookingupdate commented 9 years ago

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