| Server IP : 216.238.66.20 / Your IP : 216.73.216.249 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/22222/htdocs/cache/nginx/ |
Upload File : |
<?php
/*
This script assumes you are using nginx fastcgi-cache as rtCamp/EasyEngine uses
*/
function unlinkRecursive($dir, $deleteRootToo)
{
if(!$dh = opendir($dir))
{
return;
}
while (false !== ($obj = readdir($dh)))
{
if($obj == '.' || $obj == '..')
{
continue;
}
if (@!unlink($dir . '/' . $obj))
{
unlinkRecursive($dir.'/'.$obj, true);
}
}
closedir($dh);
if ($deleteRootToo)
{
@rmdir($dir);
}
return;
}
/*
Change your cache location here.
Leave false as it is so that parent cache folder will not be deleted.
*/
unlinkRecursive("/var/run/nginx-cache/", false) ;
echo "Nginx cache cleaned" ;
?>