disable the drupal cache for a page and for a module in drupal site

There is a contributed module to exclude drupal cache for particular pages in your drupal site. you can find the module in http://drupal.org/project/cacheexclude .

for excluding drupal cache for a particular module write the below mentioned code in ur modulename_init() hook

function your_module_name_init() {
// removing the cache for ur module
if (drupal_match_path($_GET['q'],'url_of_your_module/*')) {
$GLOBALS['conf']['cache'] = FALSE;
}
}

Share Your Answers

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.