View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007530 | OXID eShop (all versions) | 8. --- Twig engine --- | public | 2023-09-11 16:38 | 2023-11-15 16:11 |
Reporter | bYemma | Assigned To | |||
Priority | low | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 7.0.0 | ||||
Summary | 0007530: Config entry "blCheckTemplates" is not used with twig | ||||
Description | The 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 Information | Twig 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 | ||||
Tags | Twig | ||||
Attached Files | |||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
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): |
|
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 |