View Issue Details

IDProjectCategoryView StatusLast Update
0007530OXID eShop (all versions)8. --- Twig engine ---public2023-11-15 16:11
ReporterbYemma Assigned To 
PrioritylowSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version7.0.0 
Summary0007530: Config entry "blCheckTemplates" is not used with twig
DescriptionThe performance config entry "blCheckTemplates" has no effect in Twig in the current setup. There's no reload of the twig cache when the sources are edited.
Additional InformationTwig has similar to smarty's "compile_check" the option "auto_reload" which could be triggered by the config entry.
https://twig.symfony.com/doc/3.x/api.html
TagsTwig
Attached Files
2023-09-11_15h58_33.png (16,440 bytes)   
2023-09-11_15h58_33.png (16,440 bytes)   
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

bYemma

2023-09-11 17:17

reporter   ~0015535

Last edited: 2023-09-11 17:19

The screen shot before was just a quick example. Can't delete it now.

A solution can look like this, an addition to OxidEsales\Twig\TwigEngineConfiguration (screen shot 1) and OxidEsales\Twig\TwigContext (screen shot 2):

2023-09-11_16h32_41.png (15,877 bytes)   
2023-09-11_16h32_41.png (15,877 bytes)   
2023-09-11_16h35_20.png (5,680 bytes)   
2023-09-11_16h35_20.png (5,680 bytes)   

SvenBrunk

2023-11-15 16:11

administrator   ~0015750

This is now done with disable_twig_template_caching as described in https://docs.oxid-esales.com/developer/en/7.0/development/modules_components_themes/project/twig_template_engine/installation.html