View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006246 | OXID eShop (all versions) | 1. ----- eShop frontend ----- | public | 2015-10-16 10:12 | 2023-11-15 14:58 |
| Reporter | JaroslavHerber | Assigned To | |||
| Priority | low | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 4.9.5 / 5.2.5 | ||||
| Summary | 0006246: Cache oxmultilang in Smarty! | ||||
| Description | The usage of [{ oxmultilang ident="..." }] in [{foreach ...}] is a really big performance-eater. -> Especially in not cachable article-lists if you use attribute-filters. And thats because oxmultilang is not chached! If you have for example 360-600x [{oxmultilang}] in a big article-list, they will make 10-15% of the whole execution time. If you cache oxmultilang, the rendering time of such lists would increase dramatically. | ||||
| Steps To Reproduce | Enable the debugger in config.inc.php. Go to a catagorylist with 100 articles. Choose gallery-view and 100 articles per page. The debugger will show, that smarty_function_oxmultilang is the biggest performance-eater. | ||||
| Tags | Performance, Smarty | ||||
| Theme | Not defined | ||||
| Browser | Not defined | ||||
| PHP Version | Not defined | ||||
| Database Version | Not defined | ||||
|
|
Although the oxLang-Object has a caching-method, the smarty_function_oxmultilang-function isn't performant. There is too much object-data used on each execution of this function. |
|
|
1) Smarty is no longer supported 2) We will approach this from the other side-> There will be a new cache infrastructure (currently already in development) and we will look from the performance side where the most performance can be gained and in what way |