How to rebuild site after editing twig files?

629 Views Asked by At

There is an old site on Symfony2. I edited one of the twig-files. The content of the page remains the same.

I tried: Cleared app/cache folder. Restarted apache server. Reloaded browser with Ctrl+F5.

How to "rebuild" the site after editing twig files?

2

There are 2 best solutions below

0
VladR On BEST ANSWER

The problem was that I haven't noticed that the site are hosted from a virtual machine. Thus, files in the standard location were ignored.

4
hppycoder On

The fastest way for Symfony2 then would be:

rm -rf app/cache/*

However, make sure that app/cache is writable. Otherwise you'll have 500's with it not being able to write to cache anymore. You could also get specific with your environments like app/cache/dev or app/cache/prod. The next time your app loads it will take a bit more time, so if you are running a time-sensitive application (hopefully not with Symfony2) then plan that change accordingly.