Link's active state is cached

q0rban - April 8, 2009 - 19:28
Project:Vocabulary Index
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Currently, when caching is enabled, the active/inactive states of the link items are cached according to their state when the cache was created. So if you navigate to any term, the anchor tag for that term will not have the class of active added to it, since it is reading the cached state of the link. (This is hard to explain) :)

#1

Xano - April 8, 2009 - 23:01

The cause of this bug is that indexes are cached based on parameters that decide how they are rendered. This is no problem, except for tree views that can be displayed on multiple pages (index page and a block). With caching enabled the active state for one of the links (if there is any) is cached. This data is also being used on other pages. A temporary solution is to disable caching.

 
 

Drupal is a registered trademark of Dries Buytaert.