X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fsite%2FCachingSiteStore.php;h=a2f43f307b9f6c4e3f734d8f16f6303118c15717;hb=dcdb8e463e3b2be121c61c91df13ea36d270a602;hp=9243f12b8b6558f677ceecf50bcbc574bb21a0cd;hpb=39508404aa6e7d9e8ce55eeeab523bf31e8affb6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/site/CachingSiteStore.php b/includes/site/CachingSiteStore.php index 9243f12b8b..a2f43f307b 100644 --- a/includes/site/CachingSiteStore.php +++ b/includes/site/CachingSiteStore.php @@ -142,7 +142,7 @@ class CachingSiteStore implements SiteStore { * @return bool Success indicator */ public function saveSite( Site $site ) { - return $this->saveSites( array( $site ) ); + return $this->saveSites( [ $site ] ); } /** @@ -168,9 +168,11 @@ class CachingSiteStore implements SiteStore { } /** - * Purges the internal and external cache of the site list, forcing the list + * Purges the internal and external cache of the site list, forcing the list. * of sites to be reloaded. * + * Only use this for testing, as APC is typically used and is per-server + * * @since 1.25 */ public function reset() { @@ -182,6 +184,8 @@ class CachingSiteStore implements SiteStore { /** * Clears the list of sites stored. * + * Only use this for testing, as APC is typically used and is per-server. + * * @see SiteStore::clear() * * @return bool Success