aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ParserCache.php
Commit message (Collapse)AuthorAgeFilesLines
* * Reorganised the includes directory, creating subdirectories db, parser and ↵Tim Starling2008-06-161-116/+0
| | | | | | | | | | | | specials * Wrote a tool to check the integrity of the autoloader class list, fixed some issues that came up. * Start the autoloader before LocalSettings.php, so that when an extension writer thinks an inefficient one-file special page extension is the way to go, they don't have to use explicit includes to make the class inheritance work. Should continue to work with $IP set in LocalSettings.php as long as $IP is set before extensions are included. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/36353
* Revert r36093 (bug 14404).Brion Vibber2008-06-111-4/+4
| | | | | | | | | | | Regressions caused by this: "Use an anonymous user to get the parser options and the parser cache key, thus wikitext rendering is not depending of some sepcific user options such as lang, ..." User-specific options such as stub threshold were still applying in the parser, but not taken into account in the parser hash key. As a result, the caches were corrupt, saving different options into the anonymous-default options cache. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/36185
* Some tweaks to the {{int:...}} parser function:Alexandre Emsenhuber2008-06-091-4/+4
| | | | | | | | | | | | | * Respect the language given with parser options * Replace parameters before expanding its own templates/functions, like $wgOut->addWikiMsg() does * (bug 14404) Force content language when parsing the text to pass to LinksUpdate And some tweaks at save time: * Use an anonymous user to get the parser options and the parser cache key, thus wikitext rendering is not depending of some sepcific user options such as lang, ... * Same for the refresh link job Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/36093
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-201-2/+1
| | | | | | | | | | | | | | | | | | 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. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
* * remove end of line whitespaceSiebrand Mazeland2008-04-141-2/+0
| | | | | | | | * remove empty lines at end of file * remove "?>" where still present Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/33276
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-291-1/+1
| | | | | | | 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.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
* Kill some more whitespacesAntoine Musso2007-04-211-8/+7
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21458
* Yet more doc tweaks:Nick Jenkins2007-04-201-3/+0
| | | | | | | | | * Add @addtogroup tags to various classes, to try and group conceptually-related classes together. * Add brief descriptions to various Special pages, thanks to Phil Boswell. * Moving some docs to be right above the classes they represent, so that they are picked up. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21402
* Documentation tweaks to help documentation systems (Doxygen + PHPDocumentor) Nick Jenkins2007-04-041-1/+1
| | | | | | | | | | | | pick up the appropriate tags, and documentation blobs for classes. This is the same as per r20769, but with the grouping changes (e.g. removing "@{{") omitted. Please be advised that more related documentation tweaks may follow later - e.g. Doxygen generates a log file of warnings that is 574 Kb in size, when run over the just the trunk/phase3 code ... eek! Thankfully, much of that is just whining about functions without documentation ;-) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20995
* Revert r20769: we don't use PHPDocumentor anymore, we use doxygen.Brion Vibber2007-03-281-1/+1
| | | | | | | If making mass changes to tweak to its preferences, probably better to do it for the tool we actually generate docs with. :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20771
* PHPDocumentor [http://en.wikipedia.org/wiki/PhpDocumentor] documentation ↵Nick Jenkins2007-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | tweaking stuff. Minor doc tweaks to prevent some PHPDocumentor warnings or errors when run on the includes/ directory. PHPDocumentor uses a syntax very similar to javadoc - mostly we already use this, but there were a few scattered places that were adjusted to make them consistent with the rest of the code. In practical terms, these changes were made: * @url becomes @link * @fixme becomes @todo * HTML tags in descriptions must be closed / balanced. * @bug was removed (where the bug was long fixed), or changed into a @todo (in the few situations where the bug was still pending) * @obsolete becomes @deprecated * Things like "/**@{{" and "/**@}}*/" which cause "unknown tag" warnings were removed * @access must be a valid access level. * @desc tag not needed, removed. * Doesn't seem to like @licence, will accept @license however. * Use full comment block notation in a few places (i.e. open block with "/**", start each line with " *", and end block with " */") Then additional to this, to get some class docs associated with their respective classes: * Moved some docs to right above those classes (deleting blank lines, or moving descriptions from the file headers) * Marked some classes without docs as "@todo document" * (done up to "class MIMEsearchPage" on the "classtrees_MediaWiki.html" page for the includes/ directory) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20769
* Use Doxygen @addtogroup instead of phpdoc @package && @subpackageAntoine Musso2007-01-201-3/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19502
* Rename constructors to __constructorAntoine Musso2007-01-201-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19492
* * fix last commit so quickUserCan() actually skips the cascading queryBrion Vibber2007-01-131-1/+1
| | | | | | | | | * use quick check for move tab privilege check * drop quickUserCan(Edit|Move|*); just provide one quickUserCan and use the permission keys explicitly. the other (non-quick) funcs are i think deprecated, so marking them so * adjusted some whitespace Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19193
* Possibly partial patch to make userCanEdit avoid running cascade-protection ↵Andrew Garrett2007-01-131-1/+1
| | | | | | | queries on page-view. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19190
* Completing code housekeeping stuff for rest of includes/ directory: removing ↵Nick Jenkins2006-11-291-2/+0
| | | | | | | unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17991
* Abolished $wgDBname as a unique wiki identifier, it doesn't work with the ↵Tim Starling2006-10-041-2/+2
| | | | | | | | | new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. Caches for wikis with table prefixes will be lost on upgrade, caches for wikis without table prefixes will be preserved. Custom cache keys in extensions can be migrated at leisure. Extensions which write to core cache keys should be migrated ASAP, as I have done with Special:Makesysop. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16791
* A lot more of static issues when using E_STRICT from the commandline.Antoine Musso2006-07-101-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15498
* (bug 5683) Respect parser output marked as uncacheable when savingRob Church2006-05-131-13/+21
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/14201
* Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad)Antoine Musso2006-05-111-2/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/14172
* Some more PHP5 stuffAntoine Musso2006-05-111-1/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/14170
* Save the last modified timestamp to the parser cache, to avoid the need for ↵Tim Starling2006-03-161-1/+7
| | | | | | | a revision row load on hits. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13216
* removing unused globals and some whitespace cleaningLupin2006-03-071-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13179
* move hardcoded ParserCache expire time to DefaultSettings.php, 1 day nowDomas Mituzas2006-01-091-1/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12542
* * s~\t+$~~Ævar Arnfjörð Bjarmason2006-01-071-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12476
* removed $wgParserCache, converted to a singletonTim Starling2006-01-051-0/+12
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12414
* * (bug 4385) Separate parser cache entries for non-editing users, so sectionBrion Vibber2005-12-281-1/+7
| | | | | | | edit links don't vanish / appear unwanted on protected pages Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12275
* key parser cache on ($action==render)River Tarnell2005-07-031-2/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/9864
* remove wfdebug in pagehistoryRiver Tarnell2005-07-011-3/+7
| | | | | | | set ETag header on article views Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/9793
* stats changes ported from 1.4Tim Starling2005-06-191-12/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/9496
* Adding cache related stuff to a new 'Cache' subpackageÆvar Arnfjörð Bjarmason2005-04-121-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/8268
* stats merged from REL1_3ATim Starling2005-01-041-0/+15
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/6927
* (bug 934) List each category on a page only once.Brion Vibber2004-11-251-1/+1
| | | | | | | Dan Keshet's patch (http://bugzilla.wikipedia.org/attachment.cgi?id=134&action=view) plus an added version check on parser cache objects, to automatically discard cached objects using the incompatible older format. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/6385
* Let the parser cache use the objectcache table if memcached isn't set up,Brion Vibber2004-11-221-9/+16
| | | | | | | | | and enable it by default. This provides significant speedups on medium to long pages, though for busier sites the garbage collection probably should be adjusted. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/6324
* Debug infoTim Starling2004-10-231-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/6015
* correcting for what was probably an odd one-off errorTim Starling2004-10-231-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/6007
* Split files and classes in different packages for phpdocumentor. I probably ↵Antoine Musso2004-09-031-0/+2
| | | | | | | changed some double quotes to single and used function foo () { shema Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/5069
* Changing comments layout preparing for generated documentation with ↵Antoine Musso2004-09-021-0/+6
| | | | | | | Phpdocumentor Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/5032
* massive double to single quotes conversion. I have not noticed any bug after ↵Antoine Musso2004-08-221-1/+1
| | | | | | | a lot of testing Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4904
* bug fixTim Starling2004-06-041-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3870
* don't load so much stuff on parser cache hit (experimental)Tim Starling2004-06-041-3/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3866
* Extra debugging info and a typo fixTim Starling2004-05-301-1/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3766
* Fixed $wgCacheEpoch handlingTim Starling2004-05-301-6/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3764
* oopsTim Starling2004-05-291-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3743
* Save a tag into the cached text indicating the key and the timestampTim Starling2004-05-291-1/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3741
* Parser cache respects $wgCacheEpochTim Starling2004-05-291-3/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3740
* Support for database profiling, profiling bracket in ParserCache.phpTim Starling2004-05-281-0/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3713
* Parser cache moved to memcachedTim Starling2004-05-271-50/+27
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3710
* Some changes to the link tables. They now all use a key on cur_id for the ↵Brion Vibber2004-03-111-1/+1
| | | | | | | | | | | | | *_from column instead of strings, and have a unique index to force prevent any duplicate entries. There's not yet a clean step in the update script, so just clear out your links tables (patch-linktables.sql) and rebuild them with refreshLinks.php. This saves trouble in a number of places where we can now do joins with the link tables to get other info (such as cur_is_redirect!) as well as the name, and fewer bits need to be juggled on page renaming, as outgoing links no longer have to be changed (cur_id remains the same when a page is renamed). rebuildLinks.inc and some of the tools in the 'maintenance page' still need to be updated to work with the new setup. (Special:Maintenance needs a *lot* of cleanup in general. It's kind of a catch-all of vaguely defined features which suck performance like a hydroelectric dam.) Also I've slipped in some extra debug code. And, I think 'indexes.sql' is a big waste of time and should all be moved into tables.sql. Building indexes separately doesn't help on InnoDB and won't do anything on MyISAM either if you're just going to replace the table after it's built with an imported one from a dump which creates it with indexes. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2687
* bug fixTim Starling2004-02-281-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2552