/** * Delete all files in the specified directory except placeholder.txt * * @param string $dir - path to the cache folder * @return bool */ public function deleteFiles($dir = '') { require_once LIBS . 'Maintenance.php'; $maintenance = new Maintenance(); $maintenance->deleteFiles($dir); }