Le lundi 18 octobre 2010 à 08:22 -0700, Earl Miles a écrit : > 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.
By the way, I just read CTools code, and the test with the cron semaphore is ugly, but this is well done! :D Pierre.
