Im recently developing a CMS based on Drupal 6. Ive also put it on testing on my domain before launching it. While in testing I found some strange things about caching. The first problem that I ran in to is that theres no way to enable/disable caching for specific blocks, all Im trying to say is that caching creates problems when I submit a vote in Polls or if I cancel my vote in polls, surprisingly the Polls block does not reflect the submitted vote or cancelled vote, instead it just goes on displaying the cached block. Its only after I clear all the page and block caches that it starts displaying the Polls block as it should be.

I anticipate replies about how I can programmatically call some cache clearing functions in Drupal 6, which I don't know ie. I don't know how to clear all the blocks, pages and menus cache programmatically without disturbing the site itself. Id also appreciate if some on you guys have came across some module compatible with Drupal 6 which can allow caching only in specific blocks....

Thnx in advance...

"When it comes to CMS Drupal is the De Facto...."

Comments

Phillip Mc’s picture

there is a way to exclude some blocks from cache, but, I 'm not sure if it works properly..
<?php define('BLOCK_NO_CACHE', -1); ?>

http://drupal.org/node/227799

There is the cache_exclude.module which might be of use.

To get around most cache problems, I tend to use the excellent boost.module and disable drupals cache. Although I don't think that will help with your block issues,