Last modified: 2014-02-20 18:39:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42655, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40655 - Sites resource loader module's cache should be invalidated when site config changes
Sites resource loader module's cache should be invalidated when site config c...
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Low minor (vote)
: ---
Assigned To: Wikidata bugs
: need-volunteer
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-01 10:38 UTC by Daniel A. R. Werner
Modified: 2014-02-20 18:39 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel A. R. Werner 2012-10-01 10:38:04 UTC
The resource loader module for site details should be invalidated whenever the configuration of sites changes. Otherwise the changes won't be propagated to JavaScript until the resource loader's cache is purged for some other reason.
Comment 1 Daniel Kinzler 2012-10-01 18:52:06 UTC
Some resources in mediawiki have a version number that is included in the URL referenced from the main HTML. When the resource is updated, that version number gets bumped and causes a new URL to be used for the resource, effectively circumventing the stale cache.

Is such a system available for resources in general? It seems like it would be useful...
Comment 2 Lydia Pintscher 2013-10-19 17:21:06 UTC
What's the status here?
Comment 3 Lydia Pintscher 2013-11-05 14:23:47 UTC
Closing. Please reopen if this still needs to be done.
Comment 4 Daniel A. R. Werner 2013-11-05 16:39:32 UTC
Nothing has been done here. Not sure how critical this is.
Comment 5 Thiemo Mättig 2014-02-20 18:39:39 UTC
This isn't critical just because the SiteList does not change that often. But it should definitely be fixed and, from what I see, should be very easy to fix. ResourceLoaderModule provides a whole bunch of nice and very simple methods to do that. I think a combination of getModifiedHash and getModifiedTime is needed. See ResourceLoaderLanguageDataModule for an example and do the same in SitesModule.

However, low priority, so I won't take this for now.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links