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

时间:2016-11-09 09:17:17

标签: php symfony rm

有两种方法我们可以在symfony应用程序中清除缓存:

property int bar: mouseArea.pressed ? 10 : 1 prop1: bar prop2: bar prop3: bar states: [ State { name: "pressed"; when: mouseArea.pressed PropertyChanges { target: foo bar: 10 } }, State { name: "notPressed"; when: !mouseArea.pressed PropertyChanges { target: foo bar: 1 } } ] transitions: [ Transition { to: "*" NumberAnimation { target: foo property: "bar" duration: 1000 } } ]

&安培;

property int bar: mouseArea.pressed ? 10 : 1 prop1: bar prop2: bar prop3: bar Behavior on bar { NumberAnimation { duration: 1000 } }

两者有什么区别?

1 个答案:

答案 0 :(得分:5)

命令app/console cache:clear删除缓存目录以及rm但它也运行预热阶段,它会重新创建缓存区域,因此我不需要通过第一个请求创建到达(见no-warmup选项)。