Because you're setting $may_cache=1 in backup_menu, your menu item is being created on every page hit, in addition to when the menu cache is rebuilt. See 3rd paragraph http://api.drupal.org/api/HEAD/function/hook_menu

Just remove this line, because your item should be cached (but not built dynamically with each page hit).

Comments

dmuth’s picture

I am aware of may_cache, but back when I first built this module (admittedly for Drupal 4.6), I was having problems when may_cache was not set. Specifically, my menu items were not showing up /at all/.

I'll try again under 4.7 and see how that works out. Thanks for bringing that to my attention.

dmuth’s picture

Status: Active » Fixed

Okay, I've fixed that and committed to head.

-- Doug

Anonymous’s picture

Status: Fixed » Closed (fixed)