View Issue Details

IDProjectCategoryView StatusLast Update
0001235OXID eShop (all versions)4.08. Cachepublic2012-12-10 13:38
ReporterMichaelZ Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.1.5 revision 21618 
Fixed in Version4.1.6 revision 22740 
Summary0001235: language files not cached on a per theme basis
DescriptionWe 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.
TagsNo tags attached.
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

dainius.bigelis

2009-08-25 17:03

reporter   ~0001523

@Developers: please fix, that language files would be cached per theme basis.

arvydas_vapsva

2009-08-27 16:05

reporter   ~0001554

fixed