简体   繁体   English

symfony 1.4清除缓存

[英]symfony 1.4 clear cache

I want to add a directory in /cache. 我想在/ cache中添加目录。 ie /cache/custom and if I run command: 即/ cache / custom,如果我运行命令:

./symfony clear:cache

All files in custom directory gets deleted. 自定义目录中的所有文件都将被删除。 I don't want these files deleted even if I run ./symfony cc. 我不希望删除这些文件,即使我运行./symfony cc。 Any solution? 有什么办法吗?

The cache directory has a different purpose. 缓存目录具有不同的用途。 You should not write your custom files to folders like cache, logs, components, vendor because they are overridden while running some commands or while running the application. 您不应将自定义文件写入高速缓存,日志,组件,供应商等文件夹,因为在运行某些命令或运行应用程序时它们会被覆盖。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM