purge() публичный Метод

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
 /**
  * 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);
 }