[Mediawiki-l] ResourceLoader caching problems
Szőts Ákos
szotsaki at gmail.com
Sat Jul 9 09:59:18 UTC 2011
Dear members,
I've just upgraded to MediaWiki 1.17 and also updated my skin file to use
ResourceLoader.
But the problem is with ResourceLoader, that my site is loading from 8 secs
to 2 mins… Before it took approximately 4-5 seconds.
What I did:
I created an extension with an array structure in it:
$wgResourceModules ['ext.MorroHun'] = array (…) and inside I specified all
of the necessary own scripts and all the CSS files (both own and skin-
related).
After edited LocalSettings to load this file, in the skin file, in the
initPage() function I added the module: $out->addModules('ext.MorroHun');
Everything is ok with the page appearance, but it's incredibly slow. Maybe
doesn't ResourceLoader cache the generated compressed CSS and JS files on
server side? Unfortunately the server doesn't have any caching facility
(APC, memcache etc.).
I googled a lot how RL caches the results on server side but I didn't find
anything.
Sincerely,
Ákos Szőts
More information about the MediaWiki-l
mailing list