purge() public method

Purge the folder
public purge ( )
コード例 #1
0
 /**
  * Purge the data
  */
 public function purge()
 {
     // Purge the data
     Database::getInstance()->query("TRUNCATE TABLE tl_vimeo_cache");
     // Purge the images
     $folder = new \Folder(static::$imagesFolder);
     $folder->purge();
     // Log the action
     System::log('Purged the Vimeo cache', __METHOD__, TL_CRON);
 }
コード例 #2
0
ファイル: Automator.php プロジェクト: bytehead/core-bundle
 /**
  * Purge the temp folder
  */
 public function purgeTempFolder()
 {
     // Purge the folder
     $objFolder = new \Folder('system/tmp');
     $objFolder->purge();
     // Add a log entry
     $this->log('Purged the temp folder', __METHOD__, TL_CRON);
 }