doushichun9409 2017-06-05 03:57
浏览 71
已采纳

Symfony缓存是什么:实际上清楚了吗?

I have bee using Symfony for a while now, and recently ran into an issue where the app/console cache:clear didn't want to clear the cache.

I then discovered that you can manually remove the app/cache directory to clear the cache.

So aside from doing the app/cache folder, what does cache:clear actually do? Why would i keep using it rather than removing the cache folder?

  • 写回答

2条回答 默认 最新

  • duanbo5230 2017-06-05 06:55
    关注

    It also does the cache warmup (at least in version 3.1, which I'm currently using) unless you tell it not to do so with --no-warmup.

    It's also easier and faster to run commands in IDEs like PHPStorm then manually doing things such as removing files.

    Basically you can just remove cache directory if you prefer such way. Cache warmup will be performed at first Symfony request is needed.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?