Beispiel #1
0
 public function delete($key)
 {
     return Sumo\Cache::remove($key, true);
     $files = glob(DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\\._-]/i', '', $key) . '.*');
     if ($files) {
         foreach ($files as $file) {
             if (file_exists($file)) {
                 unlink($file);
             }
         }
     }
 }