Search code examples
symfonyshared-hosting

Symfony 2.7 - Changes to Views in shared hosting not working


I'm working on a website developed on Symfony 2.7 and hosted on a shared host. It seems like views are served from Symfony cache created with assetic library. These cache files are not re-generated automatically after making changes to views. How do I apply changes in such scenario?


Solution

  • I had the same issue with a shared hosting. I had to connect to the server (ssh/ftp) and manually delete the cache folder generated for twig.

    This cache folder in production mode and for that Symfony version is located at app/cache/prod/twig.

    I hope it helps.