有两种方法我们可以在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 }
}
两者有什么区别?
答案 0 :(得分:5)
命令app/console cache:clear
删除缓存目录以及rm
但它也运行预热阶段,它会重新创建缓存区域,因此我不需要通过第一个请求创建到达(见no-warmup
选项)。