[support] How to disable the menu cache on Drupal 7

Metzler, David metzlerd at evergreen.edu
Thu Jan 12 16:02:35 UTC 2012


Not that I'm aware of, but if you download administration menus you'll
find the "flush all caches" very accessible.  I think Devel also exposes
a block to make this accessible, but I tend to use the former. 

Dave

-----Original Message-----
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of DTH
Sent: Thursday, January 12, 2012 5:05 AM
To: support at drupal.org
Subject: [support] How to disable the menu cache on Drupal 7

I'm developing a custom module. This means adding lots of things via
hook_menu. Every time I add a new menu item, I need to clear all
caches via the Performance page. Is there anyway to prevent this data
being cached in the first place?

This is what's currently in my settings.php file:

if (!class_exists('DrupalFakeCache')) {
  $conf['cache_backends'][] = 'includes/cache-install.inc';
}
// Default to throwing away cache data
$conf['cache_default_class'] = 'DrupalFakeCache';
// Rely on the DB cache for form caching - otherwise forms fail.
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';

Anything else I can do to easily clear/rebuild the menu automatically
during development?
-- 
[ Drupal support list | http://lists.drupal.org/ ]


More information about the support mailing list