Flushing the cache: Difference between revisions
Jump to navigation
Jump to search
(asdf) |
(asdf) |
||
Line 3: | Line 3: | ||
e.g. | e.g. | ||
<pre> | <pre> | ||
echo 'http://zinc15.docking.org:80/ | echo 'http://zinc15.docking.org:80/tranches/all3D.json?' | scl enable httpd24 'xargs htcacheclean -v -p/mnt/nfs/export/cache/zinc' | ||
</pre> | </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]] |
Latest revision as of 11:27, 7 March 2017
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/tranches/all3D.json?' | scl enable httpd24 'xargs htcacheclean -v -p/mnt/nfs/export/cache/zinc'
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.