Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Template Doesn't Update Until Save from Admin

Started by Muut Archive 9 years ago · 2 replies · 474 views
9 years ago

I just noticed some odd behavior, and wanted to check if that is how is intended to be. Whenever I update a twig file for a page, I have to go to the page in the admin and save each page if I want that page's template file to update and render correctly.

For example, I just changed a class in one of my template files from 'btn' to 'button', but the pages didn't update until I went into the admin and clicked save.

Clearing browser cache doesn't change it either.

Is this the intended functionality, or have I set something up incorrectly/missing a setting?

9 years ago

Hi, most likely the Twig cache is enabled, and it's not re-triggered for refresh until the page is saved. Clear the cache manually and it should work.

9 years ago

Yep, Twig cache was enabled and that did it. Keeping that off for development. Thanks!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1282 9 years ago
Archive · by Muut Archive, 9 years ago
2 889 9 years ago
Archive · by Muut Archive, 9 years ago
2 4019 9 years ago
Archive · by Muut Archive, 9 years ago
1 2894 9 years ago
Archive · by Muut Archive, 9 years ago
3 1078 9 years ago