apache2 - Does an apache restart reliably clear pagespeed cache? -


i'm developing website that's getting frequent javascript updates , have started using mod_pagespeed in effort ensure customers have latest code.

the docs tell me doing clear pagespeed cache , force clients new javascript/css:

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

i did test changing javascript code, hitting refresh on browser verify still seeing old code (my cache expiration set 1 day), restarting apache, , can indeed see new changes.

can trust restart sufficient, , cache.flush not needed, or need run flush command well? i'm reading restart of apache required clear memory cache, not how file cache and/or cache.flush fits in that.

update:

i pulled pagespeed code, , if i'm understanding correctly, cache.flush process updates timestamp.

it looks that's happening in rewriteoptions::updatecacheinvalidationtimestampms here: http://modpagespeed.googlecode.com/svn/trunk/src/net/instaweb/rewriter/rewrite_options.cc

if figure out timestamp updating, seems either check it/restart apache/check again (to see if timestamp changed) or deduce filename/location/who owns somehow whether or not that's happen.

any more thoughts on this? advice on how figure out timestamp being updated? other reasoning make me feel better either manually doing flush command every time update (when i'm restarting apache other reasons) or leaving out?

no restart of apache doesnt clear pagespeed cache. have manually using cache.flush.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -