1. 百科知识问答首页
  2. 经验知识

think PHP清除缓存文件

清除缓存文件clear

如果需要清除应用的缓存文件,可以使用下面的命令:

php think clear

不带任何参数调用clear命令的话,会清除runtime目录(包括模板缓存、日志文件及其子目录)下面的所有的文件,但会保留目录。

如果不需要保留空目录,可以使用

php think clear --dir

清除日志目录

php think clear --log

清除日志目录并删除空目录

php think clear --log --dir

清除数据缓存目录

php think clear --cache

复制

清除数据缓存目录并删除空目录

php think clear --cache --dir

如果需要清除某个指定目录下面的文件,可以使用:

php think clear --path d:wwwtpruntimelog

本作品(图文、音视频)由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系 yu.jianchun@qq.com