Last modified: 2011-07-24 10:41:59 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 T32013, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30013 - DBA cache backend uses $wgTmpDirectory instead of $wgCacheDirectory
DBA cache backend uses $wgTmpDirectory instead of $wgCacheDirectory
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-22 09:28 UTC by Szőts Ákos
Modified: 2011-07-24 10:41 UTC (History)
2 users (show)

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


Attachments

Description Szőts Ákos 2011-07-22 09:28:53 UTC
When $wgMainCacheType is set to CACHE_DBA, in includes/BagOStuff.php, on line 672 MediaWiki uses $wgTmpDirectory instead of $wgCacheDirectory.

$wgCacheDirectory is allowed to be "false", in which case it disables local caching:
"Directory for caching data in the local filesystem. Should not be accessible from the web. Set this to false to not use any local caches."
Comment 1 Antoine "hashar" Musso (WMF) 2011-07-24 10:41:59 UTC
For later references, the file in 1.17.0 is:

http://svn.wikimedia.org/viewvc/mediawiki/tags/REL1_17_0/phase3/includes/BagOStuff.php?revision=90570&view=markup

The code being referred too is in DBABagOStuff::__construct()

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


Navigation
Links