How about adding this in hook_init() of any module - <a href="http://api.drupal.org/api/drupal/includes--menu.inc/function/menu_rebuild/7">http://api.drupal.org/api/drupal/includes--menu.inc/function/menu_rebuild/7</a><div>
That should do it.</div><div><br><div class="gmail_quote">On Thu, Jan 12, 2012 at 6:35 PM, DTH <span dir="ltr">&lt;<a href="mailto:david@hartster.org">david@hartster.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m developing a custom module. This means adding lots of things via<br>
hook_menu. Every time I add a new menu item, I need to clear all<br>
caches via the Performance page. Is there anyway to prevent this data<br>
being cached in the first place?<br>
<br>
This is what&#39;s currently in my settings.php file:<br>
<br>
if (!class_exists(&#39;DrupalFakeCache&#39;)) {<br>
  $conf[&#39;cache_backends&#39;][] = &#39;includes/cache-install.inc&#39;;<br>
}<br>
// Default to throwing away cache data<br>
$conf[&#39;cache_default_class&#39;] = &#39;DrupalFakeCache&#39;;<br>
// Rely on the DB cache for form caching - otherwise forms fail.<br>
$conf[&#39;cache_class_cache_form&#39;] = &#39;DrupalDatabaseCache&#39;;<br>
<br>
Anything else I can do to easily clear/rebuild the menu automatically<br>
during development?<br>
<span class="HOEnZb"><font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Sumeet Pareek</div><br>
</div>