Better cache key name, better debug output.
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 7 Jul 2008 18:20:39 +0000 (18:20 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 7 Jul 2008 18:20:39 +0000 (18:20 +0000)
includes/filerepo/File.php

index b352235..64b48e0 100644 (file)
@@ -1069,8 +1069,8 @@ abstract class File {
                $renderUrl = $this->repo->getDescriptionRenderUrl( $this->getName() );
                if ( $renderUrl ) {
                        if ( $this->repo->descriptionCacheExpiry > 0 ) {
-                               wfDebug("Attempting to get the description from the transwiki cache...");
-                               $key = wfMemcKey( 'filedesc', 'url', md5($renderUrl));
+                               wfDebug("Attempting to get the description from cache...");
+                               $key = wfMemcKey( 'RemoteFileDescription', 'url', md5($renderUrl) );
                                $obj = $wgMemc->get($key);
                                if ($obj) {
                                        wfDebug("success!\n");