/** * Add cleanup cache mark * * @param string $location URL * * @return string */ protected function addCleanupCacheMark($location) { if (\XLite::getCleanUpCacheFlag()) { $location .= (strpos($location, '?') === false ? '?' : '&') . \Includes\Decorator\Utils\CacheManager::KEY_NAME . '=' . \Includes\Decorator\Utils\CacheManager::getKey(true); } return $location; }