[drupal-devel] [bug] fuzzy cache flushes cache too frequently

Jeremy drupal-devel at drupal.org
Mon Aug 22 03:02:02 UTC 2005

Issue status update for 
Post a follow up: 

 Project:      Drupal
 Version:      cvs
 Component:    base system
 Category:     bug reports
 Priority:     normal
 Assigned to:  Jeremy at kerneltrap.org
 Reported by:  Jeremy at kerneltrap.org
 Updated by:   Jeremy at kerneltrap.org
 Status:       patch (code needs review)
 Attachment:   http://drupal.org/files/issues/cache_3.patch (7.15 KB)

Based on a brief conversation with Dries, here is an updated version of
this patch.  

Configuration is simplified by removing all references to "strict" and
"loose" caches.  Instead, the cache is either "disabled" or "enabled". 
Additionally, the site administrator can now configure the "minimum
cache lifetime", the minimum amount of time cached data will remain

The patch updates the system.module and bootstrap.inc.

Jeremy at kerneltrap.org

Previous comments:

Sun, 21 Aug 2005 00:20:39 +0000 : Jeremy at kerneltrap.org

Attachment: http://drupal.org/files/issues/bootstrap.inc_7.patch (2.08 KB)

The "fuzzy cache" mechanism is supposed to enforce a minimum time before
the cache table is flushed.  Logical errors in the fuzzy cache
implementation are leading to the cache table being flushed more

With this patch and the fuzzy cache enabled, when an event leads to
cache_clear_all() being called:
 - the cache is invalidated for the current user (simulating the cache
being cleared for that user)
 - a 5 minutes timer is started

Once five minutes passes, the cache is finally cleared for all users. 
Thus, with this patch the cache should never be cleared more than once
every five minutes.  Testing needs to be done to determine if 5 minutes
is a long enough delay.  Optionally, this delay time could be made


Sun, 21 Aug 2005 00:21:01 +0000 : Jeremy at kerneltrap.org

Patch needs review.


Sun, 21 Aug 2005 23:06:47 +0000 : chx

Jeremy, I love this patch. Can't wait for Dries to install and test on
drupal.org -- alas I can't test as I do not have a site with enough

More information about the drupal-devel mailing list