Implement caching and optimization for Redner template handling
Compare changes
Files
4- oury.balde authored
- Added `ormcache` to improve performance by caching template retrieval in `_get_cached_template`. - Refactored template processing logic: - Introduced `_to_odoo_template` to centralize transformation of external templates into Odoo-compatible format. - Simplified template computation in `_compute_template` and `_compute_template_data` using cached templates. - Removed redundant methods (`to_cache`) and consolidated logic for clarity.
+ 65
− 59
@@ -23,6 +23,7 @@
@@ -201,4 +202,51 @@
@@ -204,4 +252,7 @@
@@ -205,4 +256,8 @@
@@ -208,16 +263,7 @@
@@ -223,5 +269,3 @@
@@ -227,8 +271,6 @@
@@ -237,10 +279,7 @@
@@ -270,6 +309,6 @@
@@ -274,38 +313,5 @@