Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
hello,
I'am looking for a way / hook for indicate that authentificated user get the same cache than anonymous user.
I tried to play with the following parameter , but ...
$conf['authcache_key_generator'] = 'custom_cookiebasedkey';
Thanks in advance
Comments
Comment #2
znerol CreditAttribution: znerol commentedSorry for the late answer. One very easy (and rather safe) trick is to just remove the session cookie on selected pages. If you only want to do that for selected users/roles, then just set a cookie during login (and remove it during logout).
Try something like this in
settings.php
(removes the session cookie for selected visitors accessing the front page):That would even work without authcache.
Comment #3
znerol CreditAttribution: znerol commentedAnswered, reopen if necessary.