-
Bug
-
Resolution: Fixed
-
Blocker
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
MDL-66367_master -
Right now the template caching introduced in MDL-65794 makes use of $CFG->themerev. This means that when I am developing templates, I have to constantly purge my caches or use theme designer mode.
When theme designer mode is enabled the SCSS is recompiled on each page load which can easily take several seconds and really damages the developer experience.
We should create a new templaterev variable and use that instead.
I would recommend modelling it on cachejs and jsrev.
That is to say:
- a $CFG->cachetemplates setting; and
- A templaterev counter
When cachetemplates is empty or true, then the currently stored templaterev is used (from config)
When cachetemplates is false, templaterev is -1.
I'm going to set priority of this issue to blocker because it makes working on templates painfully slow.