Categories
PHP

Tip: Disable Drupal performance settings

On development, testing, and staging site you normally don’t want Drupal’s caching, and javascript/css aggregation features enabled.  Drop the following into your sites settings.php file to override these settings.

  1.  
  2. // disable performance caching
  3. $conf['cache'] = 0;
  4. $conf['block_cache'] = 0;
  5. $conf['preprocess_css'] = 0;
  6. $conf['preprocess_js'] = 0;