From: Aaron Schulz Date: Tue, 11 Sep 2012 06:32:12 +0000 (-0700) Subject: Added some doc comments for BacklinkCache. X-Git-Tag: 1.31.0-rc.0~22410 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=e40a90f0bcbab65a8e0c4bf9d9a12285bd510215;p=lhc%2Fweb%2Fwiklou.git Added some doc comments for BacklinkCache. Change-Id: I71201582726c986384fe9fba60a5bdc7fa465be8 --- diff --git a/includes/BacklinkCache.php b/includes/BacklinkCache.php index 824c38a216..05bf31865c 100644 --- a/includes/BacklinkCache.php +++ b/includes/BacklinkCache.php @@ -91,14 +91,16 @@ class BacklinkCache { } /** - * Create a new BacklinkCache or reuse any existing one + * Create a new BacklinkCache or reuse any existing one. + * Currently, only one cache instance can exist; callers that + * need multiple backlink cache objects should keep them in scope. * * @param Title $title : Title object to get a backlink cache for * @return BacklinkCache */ public static function get( Title $title ) { if ( !self::$cache ) { // init cache - self::$cache = new ProcessCacheLRU( 2 ); + self::$cache = new ProcessCacheLRU( 1 ); } $dbKey = $title->getPrefixedDBkey(); if ( !self::$cache->has( $dbKey, 'obj' ) ) {