* partial revert of r88019. Left the messages in for now ... don't know ... those...
[lhc/web/wiklou.git] / docs / memcached.txt
index 632511f..d8863c9 100644 (file)
@@ -153,16 +153,20 @@ Newtalk:
 Parser Cache:
        stored in: $parserMemc
        controlled by: $wgEnableParserCache
-       key: $wgDBname:pcache:idhash:$pageid-$renderkey!$hash$edit
+       key: $wgDBname:pcache:idhash:$pageid-$renderkey!$hash
                $pageid: id of the page
                $renderkey: 1 if action=render, 0 otherwise
-               $hash: hash of user options, see User::getPageRenderingHash()
-               $edit: '!edit=0' if the user can't edit the page, '' otherwise
+               $hash: hash of user options applied to the page, see ParserOptions::optionsHash()
        ex: wikidb:pcache:idhash:1-0!1!0!!en!2
        stores: ParserOutput object
-       modified by: Article::editUpdates()
-       expriy: $wgParserCacheExpireTime or one hour if it contains specific magic
-               words
+       modified by: Article::editUpdates() or Article::getOutputFromWikitext()
+       expiry: $wgParserCacheExpireTime or less if it contains short lived functions
+
+       key: $wgDBname:pcache:idoptions:$pageid
+       stores: CacheTime object with an additional list of used options for the hash,
+    serves as ParserCache pointer.
+       modified by: ParserCache::save()
+       expiry: The same as the ParserCache entry it points to.
 
 Ping limiter:
        controlled by: $wgRateLimits
@@ -219,12 +223,15 @@ Special:Allpages:
 
 Special:Recentchanges (feed):
        stored in: $messageMemc
-       key: $wgDBname:rcfeed:$format:limit:$imit:minor:$hideminor and
+       key: $wgDBname:rcfeed:$format:$limit:$hideminor:$target and
                rcfeed:$format:timestamp
-       ex: wikidb:rcfeed:rss:limit:50:minor:0 and rcfeed:rss:timestamp
+       ex: wikidb:rcfeed:rss:50:: and rcfeed:rss:timestamp
        stores: xml output of feed
        expiry: one day
-       clear by: calling Special:Recentchanges?action=purge
+       clear by: maintenance/rebuildrecentchanges.php script, or
+       calling Special:Recentchanges?action=purge&feed=rss,
+       Special:Recentchanges?action=purge&feed=atom,
+       but note need $wgGroupPermissions[...]['purge'] permission.
 
 Statistics:
        controlled by: $wgStatsMethod