cache log

This commit is contained in:
rsgrinko committed 2022-07-14 00:24:19 +03:00
1 parent 5b95de1cb5
commit dd0857ebf8
1 file changed
+1
+1
View File
@@ -162,6 +162,7 @@
*/
public static function flush(): bool
{
sendTelegram('Произведена очистка кэша' . PHP_EOL . 'IP: ' . SystemFunctions::getOS());
$di = new \RecursiveDirectoryIterator(self::$cacheDir, \FilesystemIterator::SKIP_DOTS);
$ri = new \RecursiveIteratorIterator($di, \RecursiveIteratorIterator::CHILD_FIRST);
foreach ($ri as $file) {