Hi,
I'm having odd problems with Authcache. When I flush the cache it works for half a dozen or so pages then will begin to return this error:
Authcache prevented cachingNO_CACHE: "Page not cached."
INFO:
{"Reason":"PHP Error",
"type":2,
"message":"include() [function.include]: Failed opening 'C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\owl33\\sites\\all\\modules\\authcache\\ajax/authcache_custom.php' for inclusion (include_path='.;c:\\php\\includes')",
"file":"C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\owl33\\sites\\all\\modules\\authcache\\ajax\\authcache.php",
"line":42}
Disable caching for this browser session
HTML/JavaScript time: 563 ms
--------------------------------------------------------------------------------
Authcache.ajaxRequest #1
Request:form_token_id[]: ["subscriptions_ui_node_form","search_block_form"]
Response:form_token_id:
{"subscriptions_ui_node_form":"dbbcc6e3c9c8b4faca78cce5734cfa53",
"search_block_form":"fdafe2dca8a74f97ce7fcd63ac1ed038"}
db_queries: null
HTML/JavaScript time: 813 ms
I've tried several different engines using Cacherouter, but I always get the same results. Anyone got any ideas?
Cheers,
Danielle
Comments
Comment #1
Jonah Ellison commentedHi Danielle, try opening ajax/authcache.php and deleting line #42 (it begins with @include...). I'll fix this error in the next version by using file_exists().
Comment #2
dinis commentedHi Jonah,
I actually fixed the issue by creating a file called authcache_custom.php in the ajax folder (I copied and renamed the default file which was already in there). It all seems to work perfectly now, staggering performance boost in fact.
Now I just need to track down all the pages which are unique to users instead of roles and add them to exlusion list, it's freaking them out hehe.
Many thanks for the swift response Jonah.
Danielle x
Comment #3
simg commented