aboutsummaryrefslogtreecommitdiffstats
path: root/includes/cache
Commit message (Collapse)AuthorAgeFilesLines
* MFT r112563, r112566, r112838, r112872, r112873, r112988, r113001, r113024, ↵Sam Reed2012-03-061-7/+2
| | | | | | | r113039, r113046, r113099 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/113157
* make gzopen() portable by using binary flagAntoine Musso2012-02-081-1/+1
| | | | | | | | | r110871 forgot the 'b' flag which make sure gzopen handle file content in binary form. That is for portability accross platforms. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110916
* simplify FileCacheBase::fetchTextAntoine Musso2012-02-071-6/+4
| | | | | | | | Implements a proposal by Tim on r98405 CR Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110871
* add up comment for FileCache rewrite (r98698)Antoine Musso2012-02-072-1/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110858
* Merge r97508 changes to MessageCache.php and Skin.php into trunkSam Reed2012-02-071-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110856
* Follow-up r110761: removed duplicate check of $wgShowIPinHeader and fix some ↵Alexandre Emsenhuber2012-02-061-3/+3
| | | | | | | whitespaces Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110793
* disable wgDebugToolbar when rebuilding file cacheAntoine Musso2012-02-061-1/+6
| | | | | | | | credits to iAlex :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110761
* Removed false comment, we no longer use file cache for action=raw calls.Alexandre Emsenhuber2012-02-061-1/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110742
* Reverted r108743 per CR comment. This should at least be discussed first.Aaron Schulz2012-01-123-0/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108745
* Kill "* @return void"Sam Reed2012-01-123-5/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108743
* Moved GenderCache to cache/Niklas Laxström2012-01-101-0/+135
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108498
* Attempt to avoid a warning I got during input:Mark A. Hershberger2012-01-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 7z x -so ../dewikisource-20111012-pages-meta-history.xml.7z | php maintenance/importDump.php 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs) Processing archive: ../dewikisource-20111012-pages-meta-history.xml.7z Extracting dewikisource-20111012-pages-meta-history.xml PHP Notice: Undefined index: wgExtensionAliasesFiles in /home/mah/work/code/mediawiki/mw- svn/includes/cache/CacheDependency.php on line 386 PHP Stack trace: PHP 1. {main}() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:0 PHP 2. require_once() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:287 PHP 3. BackupReader->execute() /home/mah/work/code/mediawiki/mw-svn/maintenance/doMaintenance.php:105 PHP 4. BackupReader->importFromStdin() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:93 PHP 5. BackupReader->importFromHandle() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:249 PHP 6. WikiImporter->doImport() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:282 PHP 7. WikiImporter->handlePage() /home/mah/work/code/mediawiki/mw-svn/includes/Import.php:411 PHP 8. WikiImporter->processTitle() /home/mah/work/code/mediawiki/mw-svn/includes/Import.php:534 PHP 9. Title->userCan() /home/mah/work/code/mediawiki/mw-svn/includes/Import.php:788 PHP 10. Title->getUserPermissionsErrorsInternal() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:1557 PHP 11. Title->checkSpecialsAndNSPermissions() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:2118 PHP 12. Title->getNsText() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:1728 PHP 13. Language->needsGenderDistinction() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:723 PHP 14. LocalisationCache->getItem() /home/mah/work/code/mediawiki/mw-svn/languages/Language.php:442 PHP 15. LocalisationCache->loadItem() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:218 PHP 16. LocalisationCache->initLanguage() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:283 PHP 17. LocalisationCache->isExpired() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:395 PHP 18. GlobalDependency->isExpired() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:367 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108050
* Comment and whitespace fixesTim Starling2011-12-271-4/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/107446
* Follow-up r98698: Reduce amount of ipv6 spam in ↵Aaron Schulz2011-12-231-1/+1
| | | | | | | FileCacheBase::incrMissesRecent() per CR Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/107137
* Declare constant default values directly in the class definition and removed ↵Alexandre Emsenhuber2011-12-211-9/+4
| | | | | | | the constructor since it's useless now Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/106963
* Gender is already needed in addResultToCacheNiklas Laxström2011-12-081-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/105522
* Bug 29524 - Rename RequestContext::getLang to getLanguageJohn Du Hart2011-11-211-1/+1
| | | | | | | I'll be amazed if this doens't break any tests. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/103817
* * Let HTMLFileCache constructor take in a Title *or* a the prefixed dbkey ↵Aaron Schulz2011-11-021-3/+5
| | | | | | | | | itself. * Tweaked filecache fallback in fileCachedPage() to try the raw title param. If the DB is down, we can get most views of titles with colons in them to work this way. Previously, it could fail on an interwiki lookup. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/101667
* More documentationSam Reed2011-10-291-0/+13
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/101242
* More documentation updatesSam Reed2011-10-281-1/+10
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/101161
* FU r98405: ObjectFileCache doesn't need to be abstractAaron Schulz2011-10-061-2/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/99143
* Documentation and type hinting.Happy-melon2011-10-061-2/+14
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/99099
* * Added a script to prune old file cache entries.Aaron Schulz2011-10-041-2/+2
| | | | | | | | * Use default .cache extension for ResourceFileCache. No need for js/css extension, and makes extension sanity check in prune script simpler. * Removed redundant setting of mExt in ObjectFileCache Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98852
* Simplified cacheDirectory() in FileCacheBase and HTMLFileCache. It turns out ↵Aaron Schulz2011-10-032-19/+3
| | | | | | | $wgFileCacheDirectory is always set in setup.php already. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98741
* Follow-up r98698: cache urls with 'version' param...which is kind if importantAaron Schulz2011-10-031-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98739
* * Added isCacheWorthy() optimization (checks if the file exists, stale or not)Aaron Schulz2011-10-023-9/+21
| | | | | | | | * Made isCached() use process cache * Added MISS_TTL_SEC constant and tweaked MISS_FACTOR constant Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98705
* FileCache:Aaron Schulz2011-10-024-38/+187
| | | | | | | | | | | | | | | * Added FileCacheBase::*MissesRecent() functions for counting cache misses from different visitors. * Made ObjectFileCache more generic. * Cleaned up FileCacheBase::checkCacheDirs(). * Added FileCacheBase::typeSubdirectory() function and overwrote in HTMLFileCache. Fixes r98405 invalidating all existing cache due to directory change. * Simplified FileCacheBase::checkCacheDirs() a bit ResourceLoader: * Use ResourceFileCache to handle load() requests, if $wgUseFileCache. Only caches requests for default language and skins. Single modules requests are always cached, whereas others require a certain threshold of traffic. * Added ResourceFileCache class (functionality was initially to be in ObjectFileCache). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98698
* More RequestContext -> IContextSource.Daniel Friesen2011-10-021-4/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98697
* Reverted accidental change in r98405Aaron Schulz2011-10-021-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98661
* More spurious code r98467Sam Reed2011-09-291-2/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98475
* Back out r95396 and friendsSam Reed2011-09-291-46/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98467
* FU r98405: various document cleanupAaron Schulz2011-09-293-8/+23
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98458
* HTMLFileCache refactoring:Aaron Schulz2011-09-293-162/+304
| | | | | | | | | | | | * Rewrote class and split into three classes: a base class, and html cache and a more generic cache to be used later. * The new classes now use RequestContext. * Renamed fetchPageText() -> fetchText(). * Split out new saveText() function from saveToFileCache(). * Various other cleanups and fixes. Also fixed backwards setting of $wgDisableCounters in rebuildFileCache.php. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98405
* Debug logging and possible fix for bug 31177: mystery sidebar message failuresBrion Vibber2011-09-271-3/+17
| | | | | | | | | | | | | | | | | This may be related to things failing on load from External Storage; however we have not yet been able to verify this. Tweaks MessageCache::loadFromDB() and MessageCache::getMsgFromNamespace() to avoid storing empty cache entries when loading text fails. When building initial cache if we get a failure we'll log and store a '!TOO BIG' message which requests on-demand load later. If an on-demand load failures, we'll log and return the false through but won't update the cache with the bad value. To enable the logging in production, set up a $wgDebugLogFiles entry for 'MessageCache'. Note that MessageCache::loadFromDB() bypasses Revision's text entry memcaching and may cause a lot of ES fetches at once. However any ES failures *should* already be logged in the 'ExternalStoreDB' log file. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98200
* Added filecache support for history pagesAaron Schulz2011-09-241-6/+10
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97981
* Removed action=raw support from HTMLFileCache. Obsolete due to RL.Aaron Schulz2011-09-241-18/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97978
* I broke few parser tests in r97633 by overlooking the return value. This ↵Niklas Laxström2011-09-201-0/+2
| | | | | | | fixes them. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97641
* Added LinkCache::addGoodLinkObjFromRow, since addGoodLinkObj is not going to ↵Niklas Laxström2011-09-202-14/+20
| | | | | | | work much longer when new parameters are added Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97633
* No need to check isset before unset, shortens the code a bit, and added some ↵Niklas Laxström2011-09-201-9/+3
| | | | | | | whitespace Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97626
* Simplify array( 'page_id IN (' . $dbw->makeList( $batch ) . ')' ), to array( ↵Sam Reed2011-09-191-4/+4
| | | | | | | 'page_id' => $batch ), Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97536
* Merge r82361 from 1.17wmf1 to trunk. This shuts up "Non-string key given" ↵Roan Kattouw2011-09-151-0/+5
| | | | | | | exceptions in cases where a numeric key manages to become an integer somehow. This could probably be fixed in a better way but I wouldn't know how. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97144
* Introduce MessageCache::getAllMessageKeys(), which returns all message keys ↵Roan Kattouw2011-09-141-0/+21
| | | | | | | stored in the MessageCache, and use this to power the amincludelocal parameter in meta=allmessages which adds messages that don't exist in PHP but exist as MediaWiki: pages only. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97092
* Whitespace/documentationSam Reed2011-09-141-2/+14
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97060
* Followup r86304, guard against $title AND $wgTitle being nullSam Reed2011-09-141-0/+8
| | | | | | | Add profiling too Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97050
* Refactor deferrable updates into classes & interfaces, also add helper ↵Chad Horohoe2011-09-101-2/+1
| | | | | | | | | | | method for the most common use case: $wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, "sometable" ); I kept b/c with $wgDeferredUpdateList for now, but seeing as only 3 exts in svn use it (FileSearch, FlaggedRevs and WikiScripts), I'd like to deprecate it pretty soon :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/96716
* Actually fix bug 30792, despite my earlier claims. ↵Roan Kattouw2011-09-071-6/+1
| | | | | | | | | SquidUpdate::purge('//upload.wikimedia.org/foo') would return 'http://commons.wikimedia.org//upload.wikimedia.org/foo' Introduce PROTO_INTERNAL much like PROTO_CANONICAL, and use it in SquidUpdate::purge() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/96437
* Unused variables.Platonides2011-08-271-1/+1
| | | | | | | | | $wgContLang in CategoryPage was probably removed with the better directionality improvements. $wgServer, $wgRequest in getFullUrl() unused since r94375 Other variables added in r95396 iwtransclusion merge. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/95603
* Merge the iwtransclusion branch back into trunkSam Reed2011-08-241-0/+49
| | | | | | | Hexmode fixed broken unit tests in revisions after last time Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/95396
* Back out r93533, r93531, r93530Sam Reed2011-07-301-50/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Breaks unit tests as below, not going to be able to fix them before I disappear for the evening, so might aswell leave trunk clean ArticleTablesTest testbug14404 Error: ArticleTablesTest::testbug14404 Undefined offset: 0 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/includes/ArticleTablesTest.php:31 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiTestCase.php:60 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiPHPUnitCommand.php:20 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/phpunit.php:60 ParserTests testParserTest #552 - testParserTest with data set #551 Failure: ParserTests::testParserTest with data set #551 ('RAW magic word', '{{RAW:QUERTY}}', '<p><a href="/index.php?title=Template:QUERTY&amp;action=edit&amp;redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a> </p>', '', '') RAW magic word Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -<p><a href="/index.php?title=Template:QUERTY&amp;action=edit&amp;redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a> +<p><a href="/index.php?title=Template:RAW:QUERTY&amp;action=edit&amp;redlink=1" class="new" title="Template:RAW:QUERTY (page does not exist)">Template:RAW:QUERTY</a> </p> /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/includes/parser/NewParserTest.php:545 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiTestCase.php:60 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiPHPUnitCommand.php:20 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/phpunit.php:60 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/93534
* Merge iwtransclusion branch into trunkSam Reed2011-07-301-1/+50
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/93530