我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

symfony中两种清除缓存方法的区别

There are two methods we can clear cache in symfony application:

app/console cache:clear [--env=prod]

&

rm -rf app/cache/*

What is the difference between the two ?

Command app/console cache:clear deletes the cache directory as well as rm but it also runs warmup phase, where it re-creates cache fiels so I doesn't need to be created by the first request that arrives (see no-warmup option).

近期文章

  • OO PHP - 子类不继承父方法和属性
  • 基于具有键和值的单维数组的值来拆分数组
  • 是否可以通过知道PHP中的用户名和密码(仅限)来破解我的数据库[关闭]
  • 使用方括号的字符串中的访问字符无法正确输出
  • PHP如果执行
  • 在while循环中实现PHP计数器以使用ul元素包装列表项
  • 使用PHP数组创建一个数组Javascript
  • 如何从PHP中的文件中提取字符串
  • 使用PHP7计算Mysql中的行数
  • PHP:检查URL末尾是否包含斜杠
  • 如何使用phpunit测试变量是否存在于函数中
  • 如何从URL中删除html和php扩展
  • 检查多维数组元素是否为数组本身
  • 如何删除laravel中foreach循环的最后一项中的逗号?
  • 如果刀片模板中的更新时间少于8小时,则显示消息
  • PHP,使用preg_replace删除双引号内的字符串?
  • 使用VAR DUMP POST以及如何将值转换为变量
  • 在这个例子中,长度变量发生了什么,PHP
  • 在echo语句中显示html [重复]
  • 在我的项目中找不到PHP库

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华