summaryrefslogtreecommitdiff
path: root/includes/LinkCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/LinkCache.php')
-rw-r--r--includes/LinkCache.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/LinkCache.php b/includes/LinkCache.php
index 451b3f0c..8e56225b 100644
--- a/includes/LinkCache.php
+++ b/includes/LinkCache.php
@@ -21,7 +21,7 @@ class LinkCache {
/**
* Get an instance of this class
*/
- function &singleton() {
+ static function &singleton() {
static $instance;
if ( !isset( $instance ) ) {
$instance = new LinkCache;
@@ -37,8 +37,7 @@ class LinkCache {
}
/* private */ function getKey( $title ) {
- global $wgDBname;
- return $wgDBname.':lc:title:'.$title;
+ return wfMemcKey( 'lc', 'title', $title );
}
/**