Flushing the cache: Difference between revisions
Jump to navigation
Jump to search
(asdf) |
(asdf) |
||
Line 2: | Line 2: | ||
scl enable httpd24 'xargs htcacheclean -v -p/nfs/work/www/zinc15/cache' | scl enable httpd24 'xargs htcacheclean -v -p/nfs/work/www/zinc15/cache' | ||
e.g. | e.g. | ||
<pre> | |||
echo 'http://zinc15.docking.org:80/substances/?' | scl enable httpd24 'xargs htcacheclean -v -p/nfs/work/www/zinc15/cache' | echo 'http://zinc15.docking.org:80/substances/?' | scl enable httpd24 'xargs htcacheclean -v -p/nfs/work/www/zinc15/cache' | ||
</pre> | |||
Note that the URL must include the port after the host name and always have a ?, even if there are no query args. If you're invalidating lots of URLs add the -L 100 arg to xargs. If you want to invalidate everything use the "-r" argument... but try disabling caching in the config and reloading the server first. | Note that the URL must include the port after the host name and always have a ?, even if there are no query args. If you're invalidating lots of URLs add the -L 100 arg to xargs. If you want to invalidate everything use the "-r" argument... but try disabling caching in the config and reloading the server first. | ||
[[Category:Curator]] | [[Category:Curator]] |
Revision as of 21:23, 16 October 2015
To clear one or more URLs pipe them to following command as www on either tau or gimel:
scl enable httpd24 'xargs htcacheclean -v -p/nfs/work/www/zinc15/cache'
e.g.
echo 'http://zinc15.docking.org:80/substances/?' | scl enable httpd24 'xargs htcacheclean -v -p/nfs/work/www/zinc15/cache'
Note that the URL must include the port after the host name and always have a ?, even if there are no query args. If you're invalidating lots of URLs add the -L 100 arg to xargs. If you want to invalidate everything use the "-r" argument... but try disabling caching in the config and reloading the server first.