<?php unlink(string $filename, ?resource $context = null): bool
<?php { if (is_array($files = glob("{$this->cacheDirectory}/*"))) { foreach ($files as $file) { @unlink($file); } } }
<?php if ($file === '..') { continue; } unlink("$dir/$file"); } }
<?php if (is_dir($dir)) { foreach (array_diff(scandir($dir), ['.', '..']) as $file) { unlink("{$dir}/{$file}"); } rmdir($dir);
<?php $cacheKey = md5('viewerss'); if (is_link("$dir/{$cacheKey}")) { unlink("$dir/{$cacheKey}"); } sleep(1); // Sometimes the cache is not deleted in time