Closed (fixed)
Project:
Taxonomy dhtml
Version:
5.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2007 at 15:11 UTC
Updated:
12 Apr 2009 at 04:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
meba commentedDo you have cache turned on?
Comment #2
huayen commentedSame problem, cache is on in 'normal' mode.
Comment #3
meba commentedOK, i can confirm this. I will try to fix it
Comment #4
meba commentedThis is no doubt a bug. But i am not sure where yet.
TDHTML is using:
cache_set("taxonomy_dhtml:tree_nodes_$type". $vocabulary->vid, "cache", serialize($tree_nodes), CACHE_TEMPORARY);
When you add taxonomy term, cache_clear_all() is called without arguments. This means that the first if() in this function calls cache_clear_all(NULL, 'cache_page'). This basically means that even CACHE_TEMPORARY, this cache is not cleared because it's stored in 'cache' table, not 'cache_page'.
And this means that either:
1) It's a bug in Taxonomy DHTML because my point of view to cache is wrong
2) It's a bug in Drupal's cache mechanism
3) It's a feature and i will have to clear cache manually in some hook
I am investigating this more, the workaround is to manually truncate 'cache' table in your database.
Comment #5
meba commentedComment #6
meba commentedPlease test the attached patch. Does it solve the problem?
Comment #7
mrubio commentedHi,
I am experiencing the same issue but without using cache at all (cache disabled). I've updated the module with the patch provided and nothing changes. As danwassink reports, only update.php script gets to update taxonomy_dhtml.
Yours faithfully,
Miguel
Comment #8
meba commentedAre you sure you applied the patch correctly? Just try adding this function to the end of taxonomy_dhtml module:
Comment #9
mrubio commentedYes. And I also run update.php after updating the module (which also updates the taxonomy list), but if I add new records after all that, the taxonomy_dhtml list is not updated with that new records.
This is the final part of the taxonomy_dhtml.module file:
Comment #10
mrubio commentedYes. And I also run update.php after updating the module (which also updates the taxonomy list), but if I add new records after all that, the taxonomy_dhtml list is not updated with that new records.
Also remember I am not using cache
This is the final part of the taxonomy_dhtml.module file:
Comment #11
mrubio commentedI have opened the web page on another computer and it seems to work correctly.
Comment #12
chazz commentedWorking 50/50...
When i create a node, everything is fine - categories goes into /taxonomy_dhtml. But after i delete node /taxonomy_dhtml didn't update at all. Category and node with deleted links are still there.
But...
When i create new node again, /taxonomy_dhtml is updated.
Anybody can fix it to update immidietly after delete node ?
Comment #13
chazz commentedComment #14
chazz commentedI just deleted previous usused test category from vocab and taxonomy_dhtml site was updated correct, but i add a new node again to the existed category and in block menu everything is ok i saw number (2) but in /taxonomy_dhtml doesn't update at all.
Comment #15
meba commentedThat's because the cache is not cleared after adding node. I think the solution may be hook_nodeapi catching submit of node which has taxonomy. what do you think?
Comment #16
stevefree commentedI'm also running into the same issue. I do not get udpates on node deletes or new node creations. The blocks and the syndication pages update without issues however the summary page (taxonomy_dhtml) is not getting updated unless I run the update.php page.
Comment #17
pacesie commentedI have the same issue as stevefree.
Comment #18
AQOne commentedSame issue here. Tried the patch etc. No luck. Is this still being worked on? I like the module but I need something that works for this.
Comment #19
momper commentedsubscribing
Comment #20
doc2@drupalfr.org commentedA solution for this needs to be commited in the next 5.x release.
Comment #21
sakuragi commentedvertion for drupal 6.x ??
Comment #22
Anonymous (not verified) commentedThis module is no longer being actively developed as it duplicates functionality that can be obtained through the usage of taxonomy_menu ( http://drupal.org/project/taxonomy_menu ) and dhtml_menu ( http://drupal.org/project/dhtml_menu ).