Commit graph

25 commits

Author SHA1 Message Date
Max Semenik
7220add43e Ditched DatabaseFunctions.php. All extensions using it are old and incompatible with current MediaWiki anyway. 2010-03-04 08:01:46 +00:00
Alexandre Emsenhuber
fd5b9ebd87 * (bug 21161) Changing $wgCaCacheEpoch now always invalidates file cache
Based on a patch by Platonides - http://bug-attachment.wikimedia.org/attachment.cgi?id=6678
2009-10-21 11:42:10 +00:00
Alexandre Emsenhuber
6f9f6643d7 * indent debug output produced when both $wgShowDebug and $wgDebugFunctionEntry are enabled for better readability. In this case, unindented comment will be displayed "inline" with a yellow background
* added an id to the debug data list
* allow to use $wgShowDebug with $wgDebugComments set to false
* update HTMLFileCache to use full method name in debug output
2009-09-17 18:55:29 +00:00
Tim Starling
23cfebd3d2 * Introduced a new system for localisation caching. The system is based around fast fetches of individual messages, minimising memory overhead and startup time in the typical case. It handles both core messages (formerly in Language.php) and extension messages (formerly in MessageCache.php). Profiling indicates a significant win for average throughput.
* The serialized message cache, which would have been redundant, has been removed. Similar performance characteristics can be achieved with $wgLocalisationCacheConf['manualRecache'] = true;
* Added a maintenance script rebuildLocalisationCache.php for offline rebuilding of the localisation cache.
* Extension i18n files can now contain any of the variables which can be set in Messages*.php. It is possible, and recommended, to use this feature instead of the hooks for special page aliases and magic words. 
* $wgExtensionAliasesFiles, LanguageGetMagic and LanguageGetSpecialPageAliases are retained for backwards compatibility. $wgMessageCache->addMessages() and related functions have been removed. wfLoadExtensionMessages() is a no-op and can continue to be called for b/c. 
* Introduced $wgCacheDirectory as a default location for the various local caches that have accumulated. Suggested $IP/cache as a good place for it in the default LocalSettings.php and created this directory with a deny-all .htaccess.
* Patched Exception.php to avoid using the message cache when an exception is thrown from within LocalisationCache, since this tends to fail horribly.
* Removed Language::getLocalisationArray(), Language::loadLocalisation(), Language::load()
* Fixed FileDependency::__sleep()
* In Cdb.php, fixed newlines in debug messages

In MessageCache::get(): 
* Replaced calls to $wgContLang capitalisation functions with plain PHP functions, reducing the typical case from 99us to 93us. Message cache keys are already documented as being restricted to ASCII.
* Implemented a more efficient way to filter out bogus language codes, reducing the "foo/en" case from 430us to 101us
* Optimised wfRunHooks() in the typical do-nothing case, from ~30us to ~3us. This reduced MessageCache::get() typical case time from 93us to 38us.
* Removed hook MessageNotInMwNs to save an extra 3us per cache hit. Reimplemented the only user (LocalisationUpdate) using the new hook LocalisationCacheRecache.
2009-06-28 07:11:43 +00:00
Aaron Schulz
6cd1a1b1d9 * Avoid double output on filecache failover
* XHTML fixes to error html
* Added isDisabled() to OutputPage
* Make sure filecache marks output done
2009-03-13 20:15:16 +00:00
Brion Vibber
4c881d9947 Follow-up to r47361: code style cleanup (consolidate a couple of duplicated checks, unneeded variable copying) 2009-02-17 19:08:24 +00:00
Aaron Schulz
8d2c4c5019 Try to avoid file caching php fatals, it's very annoying 2009-02-17 15:05:23 +00:00
Tim Starling
85b6246b45 (bug 17420) Send the correct content type from action=raw when the HTML file cache is enabled. Regression due to r45123/r45126. Will be backported to the 1.14 branch. 2009-02-11 15:07:18 +00:00
Aaron Schulz
e77f92fe3b Specify type here, rather than '' 2009-01-02 16:27:05 +00:00
Aaron Schulz
07c4b538a6 Simplify type check 2009-01-02 16:04:13 +00:00
Aaron Schulz
43c6f33ddb Fix doc comment, sigh 2008-12-28 15:17:21 +00:00
Aaron Schulz
ba77d25db2 FileCache - Leave raw page cache control alone to avoid hits 2008-12-28 15:14:15 +00:00
Aaron Schulz
0dd5d00e67 FileCache tweaks:
* Fix typo self -> MediaWiki
* View updates run on client cache hits
* Removed unneeded $wgOut->disable() call
* Disabled unused output on rawpage cache hits
* Removed redundant checkLastModified()
2008-12-28 15:03:57 +00:00
Aaron Schulz
f0a60c4fef FileCache cleanuo:
* Add a clearFileCache() function in the place of various unlink() calls. This also clears the raw page cache.
* Fix useFileCache() for loop
* Add mType field to file cache objects
2008-12-28 14:19:39 +00:00
Aaron Schulz
a339ab8ee1 Enable filecache for raw page hits if $wgUseFileCache is on 2008-12-28 13:32:32 +00:00
Aaron Schulz
632896e341 Pull up and tweak filecache check to make it much faster and able to for request to avoid a db hit if counters are off and job rate = 0 2008-12-11 14:29:16 +00:00
Aaron Schulz
ad34eaa3d4 Code style tweaks 2008-12-10 04:06:14 +00:00
Aaron Schulz
e06a302520 (bug 16388) 'HTMLFileCache's $mFileCache is initialized too late' 2008-11-21 00:31:56 +00:00
Aaron Schulz
e29274ca9d FileCache cleanup:
* Make isFileCacheable() more reliable and explicit
* Do not cache uncacheable content
* Specify tryFileCache() return values
2008-09-25 23:02:35 +00:00
Chad Horohoe
0c869b78a2 No more icky mkdir() calls. Grepping for mkdir() now returns nothing :) 2008-09-04 04:15:27 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Tim Starling
d411e0b1e0 Renamed CacheManager to HTMLFileCache, to avoid confusion with the other sort of cache. 2006-10-11 08:25:26 +00:00
Renamed from includes/CacheManager.php (Browse further)