[FEATURE] Adding hook in flushByTag
[Packages/TYPO3.CMS.git] / t3lib / cache / frontend / class.t3lib_cache_frontend_abstractfrontend.php
index 030c942..3e29156 100644 (file)
@@ -143,6 +143,13 @@ abstract class t3lib_cache_frontend_AbstractFrontend implements t3lib_cache_fron
                        );
                }
 
+               if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php']['flushByTag'])) {
+                       foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php']['flushByTag'] as $_funcRef) {
+                               $params = array('tag' => $tag);
+                               t3lib_div::callUserFunction($_funcRef, $params, $this);
+                       }
+               }
+
                $this->backend->flushByTag($tag);
        }