https://bugzilla.wikimedia.org/show_bug.cgi?id=35472
Web browser: ---
Bug #: 35472
Summary: ResourceLoader cache not properly fixable after moving
MediaWiki
Product: MediaWiki
Version: 1.17
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Resource Loader
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
When MediaWiki is moved (physically on-disk that is, the web-facing paths are
not relevant in this case) the ResourceLoader cache that contains links to file
paths (specifically the contents of the module_deps table) are not purged in
anyway.
I'm not sure what the right way to detect a purge-need is, but it's causing php
errors like the following (Thanks to JasonJarde for reporting this on IRC):
PHP Warning: filemtime(): stat failed for
/home/user/oldpath/wiki/resources/jquery.ui/themes/vector/images/button-down-green.png
in /home/user/oldpath/wiki/includes/resourceloader/ResourceLoaderFileModule.php
on line 380
...because those paths no longer exist.
For now I recommended JasonJarde to manually DELETE all contents of the
module_deps table and that fixes the problem.
* Possibly related bugs: bug 34752
* See also https://www.mediawiki.org/wiki/Manual:Moving_a_wiki (which mentions
nothing about this)
Possible solutions I can think of:
* Somehow detect that paths have changed
* Create a maintenance script to clear this cache
I'm not a fan of the latter because a move may not be the only cause for this
and when possible I'd like to avoid a manual fix. Having to run a maintenance
script is automated in some way, but it still requires manual intervention and
knowing that that script has to be ran. ResourceLoader should be able to figure
out the caching.
--
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