From e40a90f0bcbab65a8e0c4bf9d9a12285bd510215 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 10 Sep 2012 23:32:12 -0700 Subject: [PATCH] Added some doc comments for BacklinkCache. Change-Id: I71201582726c986384fe9fba60a5bdc7fa465be8 --- includes/BacklinkCache.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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' ) ) { -- 2.20.1