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:\www\tp\runtime\log\