Static assets not refreshing with symfony2 clear cache command

前端 未结 6 842
一个人的身影
一个人的身影 2021-02-13 17:12

I\'m using Assetic with the compass filter to pass and compile .scss files. This part of the setup seems to work fine. However, my understanding was that in the app_dev environm

6条回答
  •  我寻月下人不归
    2021-02-13 17:39

    I have fixed this issue in local development by adding a line to the end of my parameters.yml, which basically stops any asset caching from taking place.

    # parameters.yml
    ...
    
    assetic.cache.class: Assetic\Cache\ArrayCache
    

    This should never be included in a production environment as we want caching to happen!

提交回复
热议问题