Closed (fixed)
Project:
SiteMenu
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2006 at 23:58 UTC
Updated:
10 Aug 2006 at 00:45 UTC
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 ;-)
| Comment | File | Size | Author |
|---|---|---|---|
| sitemenu_cache_0.diff | 857 bytes | pwolanin |
Comments
Comment #1
kbahey commentedCommitted to 4.7 and HEAD.
Comment #2
(not verified) commented