From: William P. <wil...@ya...> - 2011-11-29 22:12:50
|
Hi Mattison, What you suggest looks fine with me, i.e. set it to cache the following: CacheEnable disk /treebase-web/search/downloadAStudy.html CacheEnable disk /treebase-web/search/study/anyObjectAsRDF.rdf CacheEnable disk /treebase-web/search/study/summary.html but in addition, we should set it to cache these: CacheEnable disk /treebase-web/search/downloadANexusFile.html CacheEnable disk /treebase-web/search/downloadAMatrix.html CacheEnable disk /treebase-web/search/downloadATree.html CacheEnable disk /treebase-web/search/downloadAnAnalysisStep.html But we don't want it to cache these: http://treebase.org/treebase-web/search/studySearch.html http://treebase.org/treebase-web/search/treeSearch.html http://treebase.org/treebase-web/search/matrixSearch.html http://treebase.org/treebase-web/search/taxonSearch.html .. because the results are unstable. Is there any easy way that I can trigger de-caching for an object or a set of objects? For example, it is not unusual for someone to upload data to TreeBASE, trigger it to have the data released to the public, and then suddenly recant and ask that the data be withheld. Typically, I'll just go in and toggle the status of their submission back to "private." But if we're caching everything, it might take a few months before the data are really unavailable to the public. I suppose if I had privileges to access the cache directory I could delete the offending objects. bp On Nov 29, 2011, at 3:41 PM, Mattison Ward wrote: > Hi Bill. > > These links resolve respectively to: > > http://treebase-dev.nescent.org/treebase-web/search/study/anyObjectAsRDF.rdf?namespacedGUID=TB2:S1925 > http://treebase-dev.nescent.org/treebase-web/search/study/summary.html?id=1925 > http://treebase-dev.nescent.org/treebase-web/search/downloadAStudy.html?id=1925&format=nexml > http://treebase-dev.nescent.org/treebase-web/search/downloadAStudy.html?id=1925&format=nexus > > Mod_cache would need to be set to something like this > > CacheEnable disk /treebase-web/search/downloadAStudy.html > CacheEnable disk /treebase-web/search/study/anyObjectAsRDF.rdf > CacheEnable disk /treebase-web/search/study/summary.html > > but I don't see an obvious way to restrict caching to TB2 objects. Querystrings cannot be used to enable or disable caching for a specific page using mod_cache. > |