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

kbahey’s picture

Status: Active » Fixed

Thank 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.

Budrick’s picture

Status: Fixed » Active

$cache_id != $cache_cid

kbahey’s picture

Status: Active » Fixed

Nice catch.

Fixed in HEAD and 5.

Also added a cache clear in the settings.

Anonymous’s picture

Status: Fixed » Closed (fixed)