コード例 #1
0
 /**
  * Clears all the page files in the cache.
  */
 public function clearCache()
 {
     $this->setState('EMPTYING_CACHE');
     //Include the file operations class
     include "core/lib/FileOperations.php";
     //Start up file operations class
     $fop = new FileOperations();
     //Let user know about the clearing cache title
     $this->getController()->getPaging()->setContentTitle($this->getController()->getView()->localize("Clearing Page Cache"));
     //Clear the contents of the cache - and show progress.
     $this->getController()->getPaging()->setContent($fop->emptyDir("cache"));
 }
コード例 #2
0
 /**
  * Clears all the page files in the cache.
  */
 public function clearCache()
 {
     $this->setState('EMPTYING_CACHE');
     //Include the file operations class
     include "core/lib/FileOperations.php";
     //Start up file operations class
     $fop = new FileOperations();
     //Clear the contents of the cache - and show progress.
     $out = $fop->emptyDir("cache");
 }
 public function clearCache()
 {
     include "core/lib/FileOperations.php";
     $f = new FileOperations();
     $f->emptyDir("cache");
 }