Page MenuHomePhabricator

Failed to create resource file cache after enabling $wgUseFileCache
Closed, ResolvedPublic

Description

Author: dram.wang

Description:
It seems that css and js resources do not cache after turn on $wgUseFileCache.

I found that requests of load.php will be sended with a title=load.php query, but useFileCache() in includes/cache/ResourceFileCache.php failed to check that.

Details

Reference
bz60414

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:01 AM
bzimport set Reference to bz60414.
bzimport added a subscriber: Unknown Object (MLST).
Krinkle set Security to None.
Krinkle edited subscribers, added: aaron; removed: wikibugs-l-list.

I haven't been able to confirm this but let's make sure static caching of ResourceLoader responses is working fine with $wgUseFileCache before the next release.

Krinkle added a project: Performance-Team.
Krinkle moved this task from Inbox to Backlog on the MediaWiki-ResourceLoader board.
Krinkle claimed this task.

Using $wgUseFileCache on a plain MediaWiki install results in ResourceLoader being cached in "uploads/cache/resources" (based on wgFileCacheDirectory, which defaults to wgUploadDirectory/cache).