bytes to megabytes and kilobytes converting methods #nakon🎫327

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@102 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
pzinovkin
2009-08-07 10:48:22 +00:00
parent 9e11da3285
commit 1b94bc530b
2 changed files with 24 additions and 2 deletions

View File

@ -125,9 +125,9 @@ final class Cache
*/
function clearOld()
{
$file = CACHE_PATH.'/'.$this->infofile;
$file = CACHE_PATH . '/' . $this->infofile;
if (!file_exists($file) || date('Ymd', filemtime($file)) != date('Ymd')) {
exec('find '.CACHE_PATH.'/ -mtime +1 -delete'); //не удаляет папки сохраняя структуру
exec('find ' . CACHE_PATH . '/ -type f -mtime +1 -delete'); //не удаляет папки сохраняя структуру
touch($file);
}
}