Update site Symfony2

0

Good morning.

I'm modifying a site made in Symfony2 and I'm having difficulty editing content. If you shoot one of the .twig files from the server that matches the index or one of the parts of the site, it stops working, or does not load, as expected. But if you change the content or include something, the site is not modified.

I wonder if you need to do any more configuration, clear the symfony cache, or something.

It is the first project I get in symfony, so I'm not very familiar with the framework, and the site is hosted on a linux server, with ssh access.

    
asked by anonymous 16.05.2017 / 16:27

1 answer

0

After modifying the file, clear the cache using the console :

php bin/console cache:clear --env=prod

Each environment (env) has a cache configuration so by default the development environment does not need to clean up every template change.

Note the fact that where I wrote --env=prod you need to define what environment it is in.

    
16.05.2017 / 16:51