https://bugzilla.wikimedia.org/show_bug.cgi?id=37812
Krinkle <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Module cache invalidation |Module cache should be |for "new" old components |invalidated (newer | |timestamp) when lesser old | |items are removed or added | |(scripts, style, messages) --- Comment #2 from Krinkle <[email protected]> 2012-10-13 06:02:23 UTC --- Note this also affects removal of items in the registry. The only way to do this I've come up with so far is by adding a hash of the module registry to the module registry itself. And then version that in the configured cache handler. Basically the same way we cache/invalidate cache of global variables. Just like the registry, global variables aren't files so they have no timestamp. Instead we hash the contents, and add it + timestamp to cache, and next time hash again and compare hashes. If different, update timestamp to current timestamp. See also the way I implemented it in ResourceLoaderLanguageDataModule. -- 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
