protected function purgeCache()
{
$paths = array(__DIR__ . '/_files/css/cache', __DIR__ . '/_files/js/cache');
foreach ($paths as $path) {
if (!file_exists($path)) {
continue;
}
foreach (glob($path . '/*') as $file) {
if ($file[0] == '.') {
continue;
}
unlink($file);
}
rmdir($path);
}
}