X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fexternalstore%2FExternalStoreDB.php;h=422e1fb553637cb7781193562e780d109b46ef9d;hb=53fd8295ff186fc1d01a4f45bd8bbcd5a0bfc1d2;hp=45a6bafa8862cde063c3233d28a7dee17109552d;hpb=e602b197ab5ea867799b8e790a9f7b9f877da952;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/externalstore/ExternalStoreDB.php b/includes/externalstore/ExternalStoreDB.php index 45a6bafa88..422e1fb553 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" );