View Single Post
  #52  
Old 07-26-2015, 11:39 PM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: X-Cart 4.7 beta:new skin, in-context checkout, custom order statuses, Smarty v3

Quote:
Originally Posted by cflsystems
Finding another issue with static pages and in general with the whole site - language variables.
Current store I am working on has about 8000 of them. On any given page only about 100 are being assigned to smarty and can be used in templates. None of the ones used in static pages from the old store work with the new one - they are just not in the $lng array.

Where is all this being assigned? Does it use some sort of cache? And how come only 100, give or take, are included in $lng array no matter which page is loaded?

Lang variables may work in 2 modes .

1) $config['General']['use_cached_lng_vars'] == 'Y' (the cache is stored in the var/cache/cache_get_language_vars_.en file)

or

2) $config['General']['use_cached_lng_vars'] == 'N' (the cache is stored in files like 2ef14b268f96456859103cc35ea458fbc7110ac6.file.welc ome.tpl.php.hash.en.php)


It seems your store works in the
"$config['General']['use_cached_lng_vars'] == 'N'" mode.


Try to enable the " Use cache for language variables " setting to fix the problem with static pages and assigned variables
http://demo.x-cart.com/demo_goldplus/admin/configuration.php#tr_use_cached_lng_vars

Thank you.
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote