View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001235 | OXID eShop (all versions) | 4.08. Cache | public | 2009-08-25 10:42 | 2012-12-10 13:38 |
Reporter | MichaelZ | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.1.5 revision 21618 | ||||
Fixed in Version | 4.1.6 revision 22740 | ||||
Summary | 0001235: language files not cached on a per theme basis | ||||
Description | We use some custom logic in the config.inc.php file to determine which theme to use for the current request. Although this works well for different sets of templates, stylesheets, images and other resources, we encountered a problem concerning the language files: After clearing the <shop>/tmp directory, the language cache (oxpec_langcache_0_0_oxbaseshop.txt) gets populated with the values from the theme that was used to handle the first request that is made. The second request and all other subsequent requests get served using the same strings, no matter which theme applies for the respective request. This applies once for every language, i.e. the users receives the strings for the correct language but possibly for the wrong theme. The expected behaviour would be to have one language file cache populated per theme and per language. Another solution to this would be to omit caching the language files, as the resulting cache file contains the same information as the lang.php file (except that the cust_lang.php is merged). Language file caching seems a little incomplete to me, as changing the language file forces the developer to delete the cache manually as it is never invalidated, which is really annoying during development. | ||||
Tags | No tags attached. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||