Hi Everybody,
I am having some troubles after the page caching mechanism was introduced.
In the pagecache.properties file I have the following:
# <========= FIRST URL PREFIX CONFIG ============>
page.url.prefix = /verkeer
page.cache.verkeer = true
page.eventpaths.verkeer = ../default.preview/appdata/
verkeersinformatie/messages.xml
page.timetolive.verkeer = 30
page.queryparams.verkeer = /verkeer
# <========= END FIRST URL PREFIX CONFIG ============>
For the existing URL's under this path everything is working fine. But when
a URL is not matched we begin with the pipelines for the 404 page and at a
certain point I can see in the log files:
10:30:57,736 INFO [pagecachefilter] PageConfiguration found for request uri
'{/verkeer/blabla}'.
10:30:57,759 INFO [sitemap] Redirecting to
'cocoon://error-page/404/not-found' at <map:redirect-to> -
[file:/Users/enricocervato/Servers/
jboss-4.2.1.GA/server/frontend/./tmp/deploy/tmp3633869386556531538frontend-2.42.0-SNAPSHOT-exp.war/sites/frontend/sitemap.xmap:1621:111<http://jboss-4.2.1.ga/server/frontend/tmp/deploy/tmp3633869386556531538frontend-2.42.0-SNAPSHOT-exp.war/sites/frontend/sitemap.xmap:1621:111>
]
10:30:57,760 INFO [sitemap] Redirecting to
'cocoon://error-page/404/not-found'
10:30:57,781 WARN [CachingFilter] PageInfo was not ok(200). Putting null
into cache PageCachingFilter with key preview-cocoon/verkeer/blabla
Increasing the level of the logs I also noticed that when going to the 404
page of a general section (a working one, not using the page cache) I am
getting the following:
2010-11-11 15:30:25,727 DEBUG [sitemap] Put a
org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline back
into the pool.
2010-11-11 15:30:25,957 INFO [core.pagecachefilter] PageConfiguration found
for request uri '{/auto/blabla}'.
2010-11-11 15:30:25,958 DEBUG [core.pagecachefilter] The found
PageConfiguration for '{/auto/blabla}' indicates that the page should not be
cached. Go to normal Cocoon processing
...
while for the 404 page of the problematic section I will see the following:
2010-11-11 15:31:01,369 DEBUG [sitemap] Put a
org.apache.cocoon.components.pipeline.impl. back into the pool.
2010-11-11 15:31:01,370 WARN
[net.sf.ehcache.constructs.web.filter.CachingFilter] PageInfo was not
ok(200). Putting null into cache PageCachingFilter with key
preview-cocoon/verkeer/blabla
2010-11-11 15:31:01,370 DEBUG [net.sf.ehcache.store.MemoryStore]
PageCachingFilterCache: Cannot remove entry as key
preview-cocoon/verkeer/blabla was not found
...
For all the URL's not using page caching the 404 is working fine. If I
disable the page caching the page 404 will work also for the troublesome
section. It is therefore quite clear that the problem is related to the page
caching mechanism.
Any idea what could be the cause of the problem? Any hint will be very much
appreciated.
Thank you very much,
--
Enrico Cervato - 0031 (0)615293346
Open Source Software Engineer
Sourcesense - making sense of Open Source: http://www.sourcesense.com
********************************************
Hippocms-dev: Hippo CMS 6 development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html