The _sitemenu_overview() starts with a call to cache_get (see below), but the cache value is never set!

function _sitemenu_overview($type = 0, $mode = 'page') {
  $n=0;
  $vocabularies = _sitemenu_get_vocabularies($type);
  foreach ($vocabularies as $vocabulary) {
    $tree_nodes = unserialize(cache_get("sitemenu:tree_nodes_$type". $vocabulary->vid));

attached patch tries to correct this behavior and also to make sure the cache ID is unique by concatenating $mode as well. Patch code seems to work- at least in as much as no obvious errors are generated ;-)

CommentFileSizeAuthor
sitemenu_cache_0.diff857 bytespwolanin

Comments

kbahey’s picture

Status: Needs review » Fixed

Committed to 4.7 and HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)