Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidalger/736ee609b6302c422de1 to your computer and use it in GitHub Desktop.
Save davidalger/736ee609b6302c422de1 to your computer and use it in GitHub Desktop.
EE Page Cache Flushing Performance Enhancement
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