/**
  * 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']));
     }
 }
Пример #2
0
 /**
  * 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;
 }
Пример #3
0
 /**
  * Flush data from cache table
  *
  * @return void
  */
 public function flushCacheTable()
 {
     $this->cacheFrontend->flush();
 }
Пример #4
0
 /**
  * @return void
  */
 public function flush()
 {
     self::$firstLevelCache[$this->cacheName] = array();
     $this->secondLevelCache->flush();
 }
Пример #5
0
 public function flush()
 {
     $this->cacheInstance->flush();
 }
Пример #6
0
 /**
  *
  */
 public function flush()
 {
     $this->cache->flush();
 }