[development] Refresh rather than re-create D6 cache

Earl Miles merlin at logrus.com
Mon Oct 18 15:22:13 UTC 2010


On 10/18/2010 8:14 AM, Pierre Rineau wrote:
> Drupal caching model is not wrong, but a lot of modules developers did
> not understood how to use the hook_flush_caches() and implement massive
> cache clear or data rebuild within this function, which is absolutely
> wrong because core will run this hook at each cron run, thus making
> those modules caches virtually useless.
> 
> It's not free critiscism, there was a time where I myself did the error
> (I'm currently fixing a lot of code right now for site performances).
> I'm currently reporting those issues with some D6 contrib modules .

I disagree. Drupal's behavior is actually bad here, because
hook_flush_caches() is what we use when the 'clear cache' button is
pressed. The cache clear that happens during cron runs is actually a
misuse of the feature from its original intention, I think.

In any case, that wasn't really relevant to my point, which is that what
you're asking about is the Pressflow model of caching, and you should
look into it.


More information about the development mailing list