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.
Authcache Builtin Cache Expiration v2 fails to expire urls if there is an associated url alias. The problem is that only internal paths are cleared instead of the alias paths. This issue does not exist in Authcache Builtin Cache Expiration v1 because there the $urls
parameter to hook_expire_cache
already contains the aliased paths and not the internal ones.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2177265-fix-v2-expiration-for-both-internal-path-and-alias.patch | 1015 bytes | gokulnk |
#1 | 2177265-fix-v2-expiration-with-alias.patch | 708 bytes | znerol |
Comments
Comment #1
znerol CreditAttribution: znerol commentedComment #2
gokulnk CreditAttribution: gokulnk commentedRan into the same scenario in a recent project. Did check the patch and it works great.
Just had one concern. Assume that path module is enabled but global redirect module is not enabled. Then there can be two caches for the same node. Say
node/2
andaboutus
. As an end user I would expect that both the caches are cleared.Have created a patch for the same logic. Please review.
Note : Since I am adding a new path thought it was more appropriate to do it in the
Comment #4
znerol CreditAttribution: znerol commentedThank you for the feedback and for the code. If I'm not mistaken the patch for the Expire module in #1978642-5: Pass node language to determine alias does exactly what you are proposing. Whenever the next version of the Expire module is released, we'd need to revert all changes introduced in this issue anyway.
Therefore instead of patching authcache, I'd rather recommend to patch Expire (or use their dev-version) for the moment.
Comment #5
gokulnk CreditAttribution: gokulnk commentedAgreed. Thanks for the great module :)
Comment #6
znerol CreditAttribution: znerol commentedCache Expiration 7.x-2.0-rc2 which includes #1978642: Pass node language to determine alias has been released a while ago. I think this is fixed now.
Comment #7
Samlet9908 CreditAttribution: Samlet9908 commentedSorry but I'm using the the latest builds of both Authcache and Cache Expiration with Memcached as the cache backend. If I enable 'external expiration' in Cache Expiration, when editing a node, it gives me a blank screen and does not save the node. I'm using aliases.
Comment #8
znerol CreditAttribution: znerol commentedThis issue is closed, please open a new support request and do not post on multiple random issues.