/** * Defines the cache dir for the media type * * @param string $media Media type * @param boolean $original Get original path OPTIONAL * * @return string */ protected function getCacheDir($media, $original = false) { $interface = is_null($this->interface) ? \XLite::isAdminZone() ? 'admin' : 'default' : $this->interface; $http = is_null($this->http) ? \XLite\Core\Request::getInstance()->isHTTPS() ? 'https' : 'http' : $this->http; return \Includes\Decorator\Utils\CacheManager::getResourcesDir($original) . $interface . LC_DS . $http . LC_DS . $media . LC_DS; }