module = $module; $this->cacheDirectory = new CacheDirectoryProvider( _PS_VERSION_, _PS_ROOT_DIR_, false ); } public function clear() { foreach (self::CONTAINERS as $containerName) { $containerFilePath = sprintf( '%s/%s%sContainer.php', rtrim($this->cacheDirectory->getPath(), '/'), ucfirst($this->module->name), ucfirst($containerName) ); if (file_exists($containerFilePath)) { unlink($containerFilePath); } } } }