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.
i patched forum.module only and thought working fine
but today, i looked at cache tables and recognize that cache_forum table truncates periodically(5 minutes maybe).
is there any setting for cache lifetime?
Comments
Comment #1
firebus CreditAttribution: firebus commentedlook through the code for this:
cache_clear_all('*', 'cache_forum', TRUE);
that will show you all the instances in which forum is cleared.
currently the forum cache is cleared whenever any modification is made to any
-term
-node
-comment
do you get a new/updated/deleted node or comment every 5 minutes?
the forum cache works great but is far from optimal. i've got a major rework of the forum cache in the works that will respect modules that rewrite taxonomy queries and will be a little more persistent.
Comment #2
11 CreditAttribution: 11 commentedyes, gets comment in that time
but i thougt the forum_cache patch provides caching the forum structure only,
everything else is node and should be node_cache's work anyway
Comment #3
firebus CreditAttribution: firebus commentedthe cached forum object includes things like number of comments on a node, most recent comment on a node, etc. for forum nodes. that data is out of date when a new comment is added to a forum node.
with the current implementation there's room for improvement by, say, testing the node to see if it's type==forum before clearing the cache.
the next implementation will have a more granular cache so that we don't have to expire the entire cache on each new node or comment.
Comment #4
robertDouglass CreditAttribution: robertDouglass commentedI'm hoping for followup here.
Comment #5
firebus CreditAttribution: firebus commentedfixing this, since the current behavior is by design.
will open a new issue with my forum caching implementation...
Comment #6
firebus CreditAttribution: firebus commentedthere already is a new issue with my forum caching implementation!
i just need to fix table sort...
http://drupal.org/node/188005
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.