add up comment for FileCache rewrite (r98698)
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 7 Feb 2012 17:56:32 +0000 (17:56 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 7 Feb 2012 17:56:32 +0000 (17:56 +0000)
includes/DefaultSettings.php
includes/cache/FileCacheBase.php
includes/cache/HTMLFileCache.php

index 0f657e5..b690896 100644 (file)
@@ -1697,6 +1697,8 @@ $wgStyleVersion = '303';
  * This will cache static pages for non-logged-in users to reduce
  * database traffic on public sites.
  * Must set $wgShowIPinHeader = false
+ * ResourceLoader requests to default language and skins are cached
+ * as well as single module requests.
  */
 $wgUseFileCache = false;
 
index d355818..00fe995 100644 (file)
@@ -169,7 +169,10 @@ abstract class FileCacheBase {
        }
 
        /**
-        * Get the cache type subdirectory (with trailing slash) or the empty string
+        * Get the cache type subdirectory (with trailing slash)
+        * An extending class could use that method to alter the type -> directory
+        * mapping. @see HTMLFileCache::typeSubdirectory() for an example.
+        *
         * @return string
         */
        protected function typeSubdirectory() {
index 5e9d812..92130f6 100644 (file)
@@ -45,6 +45,8 @@ class HTMLFileCache extends FileCacheBase {
 
        /**
         * Get the cache type subdirectory (with the trailing slash) or the empty string
+        * Alter the type -> directory mapping to put action=view cache at the root.
+        *
         * @return string
         */
        protected function typeSubdirectory() {