Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Grav doesn't update existing pages when twig template is changed

solved

Started by Ivan Ilarionov 9 years ago · 3 replies · 2503 views
9 years ago

Hi All,
I have the following problem with grav. I'm trying to edit the twig code of one of my page tamplates, but after I save the twig file and refresh the website (CTRL+F5), the existing pages that use this tamplate don't change. Only when I make a new page, the updated twig file is used. Is there any way to refresh the whole grav, in order to update the state of all existing pages?

Thanks!

9 years ago

In the terminal, from the root folder, type bin/grav clearcache. If you're only using the Admin screen, then I'm not sure. I assume there's a "Clear Cache" feature somewhere on the Admin screen.

Suggested topics

Topic Participants Replies Views Activity
General · by Andy Miller, 1 week ago
0 139 1 week ago
General · by lynbor, 1 month ago
3 455 2 weeks ago
General · by lynbor, 3 weeks ago
7 589 2 weeks ago
General · by Harry, 2 weeks ago
0 176 2 weeks ago
General · by Old Man Umby, 1 month ago
2 318 4 weeks ago