From bafa0dfa9b2f5c71e795201d4cc2bbdbbb298637 Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Wed, 14 Mar 2018 11:25:23 +0800 Subject: [PATCH] ignore amp path --- application/controllers/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/cache.php b/application/controllers/cache.php index 0f87941b..c796d501 100644 --- a/application/controllers/cache.php +++ b/application/controllers/cache.php @@ -138,7 +138,7 @@ class Cache extends CI_Controller $mydir = dir($dir); while($f = $mydir->read()) { - if(is_dir("$dir/$f") && $f!="." && $f!=".." && (strpos($dir, '/cn/')==false)) + if(is_dir("$dir/$f") && $f!="." && $f!=".." && (strpos($dir, '/cn/')==false) && (strpos($dir, '/amp/')==false)) { $path[] = "$dir/$f"; $this->tree("$dir/$f", $file, $path, $file_time);