X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=bd0fbc2073a3c661f4c63efce36787a797819bb3;hb=22bf875d152751f5590508a1f44976c9db30cb44;hp=857d69ee515f6eb032ab962304331645103cad78;hpb=fed9e3e163c5e4debffdcb03bfb0ceec7fec8f0d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 857d69ee51..bd0fbc2073 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2160,7 +2160,7 @@ $wgObjectCaches = array( ); /** - * Main cache Wide-Area-Network cache type. This should be a cache with fast access, + * Main Wide-Area-Network cache type. This should be a cache with fast access, * but it may have limited space. By default, it is disabled, since the basic stock * cache is not fast enough to make it worthwhile. For single data-center setups, this can * simply be pointed to a cache in $wgWANObjectCaches that uses a local $wgObjectCaches @@ -2171,7 +2171,8 @@ $wgObjectCaches = array( * a relayer (only matters if there are multiple data-centers) * - CACHE_NONE: Do not cache * - (other): A string may be used which identifies a cache - * configuration in $wgWANObjectCaches. + * configuration in $wgWANObjectCaches + * @since 1.26 */ $wgMainWANCache = false; @@ -2187,6 +2188,8 @@ $wgMainWANCache = false; * a cache identifier from $wgObjectCaches. The "relayerConfig" parameter is an * array used to construct an EventRelayer object. The "pool" parameter is a * string that is used as a PubSub channel prefix. + * + * @since 1.26 */ $wgWANObjectCaches = array( CACHE_NONE => array( @@ -2205,6 +2208,21 @@ $wgWANObjectCaches = array( */ ); +/** + * Main object stash type. This should be a fast storage system for storing + * lightweight data like hit counters and user activity. Sites with multiple + * data-centers should have this use a store that replicates all writes. The + * store should have enough consistency for CAS operations to be usable. + * + * The options are: + * - db: Store cache objects in the DB + * - (other): A string may be used which identifies a cache + * configuration in $wgObjectCaches + * + * @since 1.26 + */ +$wgMainStash = 'db'; + /** * The expiry time for the parser cache, in seconds. * The default is 86400 (one day). @@ -2351,13 +2369,8 @@ $wgUseFileCache = false; $wgFileCacheDepth = 2; /** - * Keep parsed pages in a cache (objectcache table or memcached) - * to speed up output of the same page viewed by another user with the - * same options. - * - * This can provide a significant speedup for medium to large pages, - * so you probably want to keep it on. Extensions that conflict with the - * parser cache should disable the cache on a per-page basis instead. + * Kept for extension compatibility; see $wgParserCacheType + * @deprecated 1.26 */ $wgEnableParserCache = true;