|
|
|
@ -283,6 +283,19 @@ Class SiteController extends Controller {
@@ -283,6 +283,19 @@ Class SiteController extends Controller {
|
|
|
|
|
|
|
|
|
|
unlink("{$cacheDir}{$file}"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//删除图片缓存: image/ |
|
|
|
|
$imgCacheDir = "{$cacheDir}image/"; |
|
|
|
|
if (is_dir($imgCacheDir)) { |
|
|
|
|
$files = scandir($imgCacheDir); |
|
|
|
|
foreach($files as $file) { |
|
|
|
|
if (!preg_match('/\.json$/i', $file)) {continue;} |
|
|
|
|
|
|
|
|
|
unlink("{$imgCacheDir}{$file}"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
rmdir($imgCacheDir); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}catch(Exception $e) { |
|
|
|
|
$code = 0; |
|
|
|
|