Ooops, completly forgot to submit this one before... (Carpaski, if you remember, we talk about this a few days ago on irc). This patch adds a use_cache parameter (enabled by default) to some functions of the from the vartree/vardbapi classes. The goal is to be able to disable "matchcache" and "cpcache" during the merging phase, because otherwise it breaks autoclean when merge time is less than one second (caches gives wrong answer in that case because mtimes don't change). Because of the mix beetween global functions and method specific to this classes, it propagate through several functions where it is not really needed in fact :/ Sorry, not found anything simpler. I've not propagated this parameter to the "listdir" function because i've not found evidence that this cache can also be affected by the same kind of bugs (but for a special case that i've fixed by clearing the current category listing at the end of the treewalk), but i think that in theory there may be the same problem with this one... I don't really know. Reproducible: Always Steps to Reproduce:
Created attachment 24605 [details, diff] use_cache.patch Patch was against _pre20, but still apply on _pre21.
*** Bug 39960 has been marked as a duplicate of this bug. ***
supposed to be fixed in 2.0.50 which is stable now. If this bug is not fixed please reopen.