From: Mattison W. <mat...@ne...> - 2011-11-29 20:42:17
|
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<http://treebase-dev.nescent.org/treebase-web/search/study/summary.html?id=1925> 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. On Thu, Nov 17, 2011 at 2:11 PM, William Piel <wil...@ya...> wrote: > > On Nov 17, 2011, at 12:25 PM, Mattison Ward wrote: > > I will test this on treebasedev. > > > Thanks. To test it you could do the following: > > http://purl.org/phylo/treebase/dev/phylows/study/TB2:S1925 > http://purl.org/phylo/treebase/dev/phylows/study/TB2:S1925?format=html > http://purl.org/phylo/treebase/dev/phylows/study/TB2:S1925?format=nexml > http://purl.org/phylo/treebase/dev/phylows/study/TB2:S1925?format=nexus > > And in each case you should see a new record stored in cacheRoot, each in > a different format. > > bp > > > > > On Thu, Nov 17, 2011 at 11:14 AM, William Piel <wil...@ya...>wrote: > >> >> On Nov 17, 2011, at 10:02 AM, William Piel wrote: >> >> > Therefore, if you also know of an Apache plugin that will cache results >> for "/phylows/study/TB2:", that would greatly help. >> >> Looking at mod_cache, I wonder if this would work: >> >> cacheRoot c:/cacheroot >> cacheEnable disk /treebase-web/phylows/study/TB2: >> cacheDirLevels 1 >> cacheDirLength 20 >> cacheMinFileSize 1 >> cacheMaxFileSize 50000000 >> cacheIgnorecacheControl Off >> cacheIgnoreNoLastMod On >> cacheMaxExpire 2592000 >> >> ... resulting in a one-month cache on all TB2 objects. What's unclear to >> me is whether the cacheEnable string allows substrings or whether it needs >> to end in "/". If that's a limitation, are there third-party plugins that >> can cache using wildcards? >> >> bp >> >> >> >> >> > > > -- > Mattison Ward > NESCent at Duke University > 2024 W. Main Street, Suite A200 > Durham, NC 27705-4667 > 919-668-4585 (desk) > 919-668-4551 (alternate) > 919-668-9198 (fax) > > > -- Mattison Ward NESCent at Duke University 2024 W. Main Street, Suite A200 Durham, NC 27705-4667 919-668-4585 (desk) 919-668-4551 (alternate) 919-668-9198 (fax) |