Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be useful if there was a way of extending the default rulesets, so that e.g. modules could automatically add their custom paths to the default paths list, and so that individual sites could hardcode the rulesets.
Comment | File | Size | Author |
---|---|---|---|
#2 | authcache-n2677100-2.patch | 1.33 KB | DamienMcKenna |
Comments
Comment #2
DamienMcKennaThis adds hook_authcache_default_pagecaching_alter().
Comment #3
znerol CreditAttribution: znerol commentedI feel that the variable
authcache_pagecaching
contains way to much information. In order to provide a better API it should be reworked into ctools exportables or something similar before adding new features on top of it.On the other hand, there is already a good API for contrib/custom code in order to influence the caching policy.
Depending on your use-case it might be worthwhile to either use
features/strongarm/fe_variable
to track the contents of the variable for a given site, or to implementhook_authcache_request_exclude
,hook_authcache_account_exclude
for general purpose integration/contrib code.Comment #4
znerol CreditAttribution: znerol commentedClosing this, see answer above.