aboutsummaryrefslogtreecommitdiffstats
path: root/includes/externalstore
diff options
context:
space:
mode:
Diffstat (limited to 'includes/externalstore')
-rw-r--r--includes/externalstore/ExternalStoreDB.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/externalstore/ExternalStoreDB.php b/includes/externalstore/ExternalStoreDB.php
index 45a6bafa8862..422e1fb55363 100644
--- a/includes/externalstore/ExternalStoreDB.php
+++ b/includes/externalstore/ExternalStoreDB.php
@@ -194,6 +194,10 @@ class ExternalStoreDB extends ExternalStoreMedium {
static $externalBlobCache = [];
$cacheID = ( $itemID === false ) ? "$cluster/$id" : "$cluster/$id/";
+
+ $wiki = $this->params['wiki'] ?? false;
+ $cacheID = ( $wiki === false ) ? $cacheID : "$cacheID@$wiki";
+
if ( isset( $externalBlobCache[$cacheID] ) ) {
wfDebugLog( 'ExternalStoreDB-cache',
"ExternalStoreDB::fetchBlob cache hit on $cacheID" );