Displays old sitemap even after taxonomy terms have been changed.
Drupal 5.1, cache option for site is off.
To fix this I have added this function:
function sitemenu_taxonomy($op, $type, $object){
db_query("delete from {cache} where cid like 'sitemenu%'");
}
Comments
Comment #1
kbahey commentedThank you.
A better solution is this:
function sitemenu_taxonomy($op, $type, $object) {
// Expire the sitemenu cache when a taxonomy is added/changed/deleted
$cache_id = 'sitemenu:tree_nodes';
cache_clear_all($cache_cid, 'cache', TRUE);
}
Which I added to 5 and HEAD.
Comment #2
Budrick commented$cache_id != $cache_cid
Comment #3
kbahey commentedNice catch.
Fixed in HEAD and 5.
Also added a cache clear in the settings.
Comment #4
(not verified) commented