/** * Function aborts the cache after it's start. * * <p>Note: must be called if component returns before endResultCache or includeComponentTemplate called.</p> * @return void * */ public final function abortResultCache() { global $CACHE_MANAGER; if (!$this->__bInited) { return null; } if (!$this->__cache) { return null; } $cacheWasStarted = $this->__cache->isStarted(); $this->__cache->abortDataCache(); if (defined("BX_COMP_MANAGED_CACHE") && $cacheWasStarted) { $CACHE_MANAGER->abortTagCache(); } $this->__cache = null; }