Created
May 4, 2015 16:03
-
-
Save davidalger/736ee609b6302c422de1 to your computer and use it in GitHub Desktop.
EE Page Cache Flushing Performance Enhancement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php b/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php | |
index 57ece57..f0ad2a6 100644 | |
--- a/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php | |
+++ b/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php | |
@@ -46,6 +46,7 @@ class Enterprise_PageCache_Model_Observer_Index | |
$entity->setId($entityId); | |
$cacheTags = array_merge($cacheTags, $entity->getCacheIdTags()); | |
} | |
+ $cacheTags = array_unique($cacheTags); | |
if (!empty($cacheTags)) { | |
Enterprise_PageCache_Model_Cache::getCacheInstance()->clean($cacheTags); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment