From 99f779dce05fc63c7e56126955966b73c8c6d982 Mon Sep 17 00:00:00 2001 From: pzinovkin Date: Fri, 7 Aug 2009 16:41:39 +0000 Subject: [PATCH] ignore files in .svn, #10 git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@103 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Cache.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Cache.class.php b/classes/Cache.class.php index ac46b8c..9f4588b 100644 --- a/classes/Cache.class.php +++ b/classes/Cache.class.php @@ -127,7 +127,7 @@ final class Cache { $file = CACHE_PATH . '/' . $this->infofile; if (!file_exists($file) || date('Ymd', filemtime($file)) != date('Ymd')) { - exec('find ' . CACHE_PATH . '/ -type f -mtime +1 -delete'); //не удаляет папки сохраняя структуру + exec('find ' . CACHE_PATH . '/ -type f \! -path "*.svn*" -mtime +1 -delete'); //не удаляет папки сохраняя структуру touch($file); } }