jenkins-bot has submitted this change and it was merged.
Change subject: resourceloader: Use WAN cache for validateScriptFile cache
......................................................................
resourceloader: Use WAN cache for validateScriptFile cache
This keeps core callers more consistent.
Change-Id: I5e06a963a5e10204445a01c00109b46a6971bcfe
---
M includes/resourceloader/ResourceLoaderModule.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Krinkle: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/resourceloader/ResourceLoaderModule.php
b/includes/resourceloader/ResourceLoaderModule.php
index 63ba5c1..fcda87b 100644
--- a/includes/resourceloader/ResourceLoaderModule.php
+++ b/includes/resourceloader/ResourceLoaderModule.php
@@ -844,7 +844,7 @@
protected function validateScriptFile( $fileName, $contents ) {
if ( $this->getConfig()->get( 'ResourceLoaderValidateJS' ) ) {
// Try for cache hit
- $cache = ObjectCache::getLocalClusterInstance();
+ $cache = ObjectCache::getMainWANInstance();
$key = $cache->makeKey(
'resourceloader',
'jsparse',
--
To view, visit https://gerrit.wikimedia.org/r/250677
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5e06a963a5e10204445a01c00109b46a6971bcfe
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits