摘要: 1 2 3 4 清除文件缓存 5 6 7 8 12 1 //yii2.0目录删除,删除成功输出1 2 3 public function actionDelfilecache() 4 { 5 $cachePath = Yii::getAlias('@app/runtime/cache'); 6... 阅读全文
posted @ 2017-01-19 16:01 py卡卡 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: 1 private function getFileCacheCount($pathName) 2 { 3 $data = [ 4 5 //文件的个数 6 'num' => 0, 7 8 //文件的大小 9 'size' => 0 10 ]; 11 12 //打开目录 13 $dir = opendir($pathName)... 阅读全文
posted @ 2017-01-19 15:38 py卡卡 阅读(249) 评论(0) 推荐(0) 编辑