/** * Clear the class cache * * @return void */ public function clear() { $this->cacheInstance->flush(); if (isset($GLOBALS['BE_USER'])) { $GLOBALS['BE_USER']->writelog(3, 1, 0, 0, '[StaticInfoTables]: User %s has cleared the class cache', array($GLOBALS['BE_USER']->user['username'])); } }
/** * Sets the contents of a file to the specified value. * * @param string $fileIdentifier * @param string $contents * @return int The number of bytes written to the file */ public function setFileContents($fileIdentifier, $contents) { $localFilePath = GeneralUtility::tempnam('fal_dropbox'); $bytes = file_put_contents($localFilePath, $contents); $handle = fopen($localFilePath, 'rb'); $this->dropboxClient->uploadFile($fileIdentifier, WriteMode::force(), $handle); // $handle was fclosed by uploadFile() unlink($localFilePath); $this->cache->flush(); return $bytes; }
/** * Flush data from cache table * * @return void */ public function flushCacheTable() { $this->cacheFrontend->flush(); }
/** * @return void */ public function flush() { self::$firstLevelCache[$this->cacheName] = array(); $this->secondLevelCache->flush(); }
public function flush() { $this->cacheInstance->flush(); }
/** * */ public function flush() { $this->cache->flush(); }