Closed (fixed)
Project:
Authenticated User Page Caching (Authcache)
Version:
6.x-6.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2010 at 22:32 UTC
Updated:
14 Sep 2012 at 08:31 UTC
Comments
Comment #1
Jonah Ellison commentedAh-hah, you found the old Boost code I borrowed. ;)
This logic definitely needs to be updated, though I believe 404s should be safe to cache, unless you can think of a reason otherwise. Drupal core 6 & 7 both cache 404s (and even 403s) and it looks like Boost prevented this due to mod_rewrite limitations (http://drupal.org/node/311988).
Comment #2
jeremy commentedOn a client website where we deployed authcache, we have had some pages generate a 404 for anonymous users which then gets cached. The bigger issue is determining why a valid page is intermittently generating a 404 (which may have been a now-resolved memcache configuration issue), but for now the request was to simply not cache 404 pages.
At minimum the comment should be updated to explain what the code is doing, as currently a page is only not cached if it's not explicitly listed for caching AND it's not text/html AND it's not a 200.
Comment #3
puddyglumThanks, I was getting both 404 and 403 pages cached... appears to have resolved it! Thanks!
Comment #4
zacpal-1 commentedI'm periodically getting valid URL's returned as 404 then being cached that way. Is this patch what'll resolve this problem?
Comment #5
evancooperman commentedThat's exactly what it should resolve.
Comment #6
simg commented