Closed (fixed)
Project:
Authenticated User Page Caching (Authcache)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2013 at 01:33 UTC
Updated:
13 Sep 2013 at 23:11 UTC
Comments
Comment #1
simg commentedI need to familiarise myself with Authcache 7.x-2.x but in previous versions there was a textbox on the config page that let you specify urls (and I think patterns of urls) to not cache ?
Comment #2
funature commentedyes, you are right. but the shurly module creates short urls like www.example.com/xyz without any prefix. that means, i can not block those links in the setting form with pattern. there are thousands of them, it is of course not possible to add them to the list one by one.
Comment #3
simg commentedhmm, good point.
from memory (it's been a while since I've worked on Authcache) there's a global variable called _authcache_is_cacheable. You could try having a module set this variable when you don't want to cache. There's also a function called authcache_is_cacheable which you could "hack" to do what you need.
There really needs to be a better solution than this (and maybe there already is, but I don't have time to look into it right now). A hook would certainly be a worthwhile enhancement.
Comment #4
simg commented>There probably already is
There is ! https://drupal.org/node/1904316
Comment #5
funature commentedthanks, i tried this with no success, finally i found out because the redirect happens already in shurly_boot(), so i added drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); then it works. but i'm not sure if there is a disadvantage to do like this
Comment #6
znerol commented@funature: Thanks for your investigations. There is an
hook_exitinvocation inshurly_goto. At this point Drupal is not yet fully booted because the latter function is called from withinshurly_boot.I think that I need to rewrite
authcache_exitin such a way, that it also works with lower bootstrapping phases.Comment #7
znerol commentedFix committed in 489f572, let's see whether the test results turn to green again...
Comment #8
funature commentedthanks, it works great.