Issue
When caching is turned off ...
1) Create a new node and save it.
2) Click edit, notice the suggestions.
3) Completely replace the body text and title with a totally unrelated set of text.
4) Click save.
5) Click edit and notice that the suggestions are the same as in 2 above.
Solution (maybe?)
I think there may be a problem with the alchemy_get_elements_from_node function.
There is a line:
$elements = alchemy_get_elements($text, $type, $output = 'normalized', $node->nid, TRUE);
This seems to force it to use the cache all the time.
that I suspect should read:
$elements = alchemy_get_elements($text, $type, $output, $node->nid, $use_cache);
Is that right?
p.s. Also, I wonder if it would be better to use $node->vid rather than $node->nid ? I guess this is debatable and depends on what the caching is trying to achieve.
Cheers!
Comments
Comment #1
technologywon commentedDrupal 6 is no longer supported