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.
The expire framework allows for pages to be selectively expired from the cache. For forums this means that you would want parent items to be cleared when a post is posted or updated.
This is better than the internal Drupal approach which clears the whole page cache on a post.
I have written a patch for this as a stand alone module but I think it would be better to be part of the advanced forums module as if expire is not installed the hook will have no effect.
Patch incoming.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2093989.patch | 2.34 KB | JeremyFrench |
Comments
Comment #1
JeremyFrench CreditAttribution: JeremyFrench commentedPatch attached.
Comment #2
podarokCan You provide steps for testing or some tests with and without patch?