EduSoho网络教学软件 加入小组

537个成员 301个话题 创建时间:2013-09-17

请问edusoho在哪里关闭缓存呢?

发表于 2013-11-11 7438 次查看

请问edusoho在哪里关闭缓存呢?不要生成cache目录中的内容。

1回复
  • 2楼 kent 2013-11-11

    I'm assuming you're using the Twig engine, (the default templating engine for Symfony2). To disable caching in twig, so that you do not have to keep clearing the cache like so:

    rm -rf app/cache/*

    Navigate to your app config file (by defualt will be located in ../app/config/config.yml from your root directory). Scroll to the twig configuration settings (under twig:) and change the cache value (which should be pointing to the cache directory) to false like so:

    twig: cache: false

    If you do not see any cache configuration entry, simply add the line above

发表回复
功能维护升级中,维护完成完后将再次开放,非常抱歉给您学习造成的不便。