Friday, 7 December 2012

Drupal 6 - Disable Drupal Caching

  1. Create a Custom Module in sites/all/modules.
  2. Write the below two function in CustomModule.Info file in Custom Module Folder
/* Disable Cache of Drupal */
function mycustommodule_caching_disable() {
    variable_set('cache_inc', './includes/');
/* Disable Cache of Drupal */

/* Enable Cache of Drupal */
function mycustommodule_caching_enable() {
/* Enable Cache of Drupal */

Note: Those two functions are Custom Functions not Drupal hook functions. So,
  1. If you want to disable the Caching, Call "mycustommodule_caching_disable".
  2. If you want to re enable the Caching, Call "mycustommodule_caching_enable".

1 comment:

  1. Looking at a CMS is very significant I use Drupal. Because When I learned the biggest nonprofits use Durpal, it's a no brainer For Drupal hosting I always use Pantheon with fast cache responses What platform did you chose?


Thank you so much for providing your valuable feedback. I will will look into them and update my skills & technologies accordingly.