https://bugzilla.wikimedia.org/show_bug.cgi?id=33608

--- Comment #4 from Bawolff <[email protected]> 2012-10-14 18:35:32 UTC ---
(In reply to comment #3)
> I disagree with Brian (Bawolff) slightly, 
> 
> The $wgCategoryTreeDisableCache might have implications I'm not aware of, but
> this bug is due to the caching in CategoryTree::ajax(), which creates and uses
> an instance of AjaxResponse. 
> 
> The CategoryTree::ajax() method doesn't do stringent enough testing for
> invalidation, it merely (hardcodes) the expiry as 86400 seconds (24 hours.) I
> understand the reasoning behind this -- to cache the responses of the ajax
> calls and make them fast/lightweight. However, when the category-structure
> changes, the ajax response doesn't get invalidated, leading to an error in the
> results.

Good catch. I didn't even know that CategoryTree::ajax did caching. If the
inconsistency is in the initial state of the tree (before expanding anything),
its probably the variable, otherwise it is likely what you suggest.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to