cache log
This commit is contained in:
1 parent
5b95de1cb5
commit
dd0857ebf8
1 file changed
+1
@@ -162,6 +162,7 @@
|
|||||||
*/
|
*/
|
||||||
public static function flush(): bool
|
public static function flush(): bool
|
||||||
{
|
{
|
||||||
|
sendTelegram('Произведена очистка кэша' . PHP_EOL . 'IP: ' . SystemFunctions::getOS());
|
||||||
$di = new \RecursiveDirectoryIterator(self::$cacheDir, \FilesystemIterator::SKIP_DOTS);
|
$di = new \RecursiveDirectoryIterator(self::$cacheDir, \FilesystemIterator::SKIP_DOTS);
|
||||||
$ri = new \RecursiveIteratorIterator($di, \RecursiveIteratorIterator::CHILD_FIRST);
|
$ri = new \RecursiveIteratorIterator($di, \RecursiveIteratorIterator::CHILD_FIRST);
|
||||||
foreach ($ri as $file) {
|
foreach ($ri as $file) {
|
||||||
|
|||||||
Reference in new issue
Block a user