multilingual blocks

edited July 2015 in Installation
Hi!
I use fuel_block() with some logic to display main navigation on the site, my site is multilingual and I need to make this block cached, but when I change language version it displays version of the block that has been cached first...
<?php echo fuel_block(array('view' => 'mega_menu' ,'cache' => true, 'language' => $selected_lang)); ?>
Prompt how to configure caching for multilingual blocks?
p.s.
block 'mega_menu' is a view file and does not exists in CMS

Comments

  • edited 6:59PM
    This appears to be a bug. In the fuel/modules/fuel/libraries/Fuel_blocks.php file, if you add the following line at line 129, does it fix your issue:
    if (!empty($p['language'])) $cache_id .= $p['language'];
  • edited 6:59PM
    Yes it did!
    Thank You!
  • edited 6:59PM
    OK. I'll push that fix to the develop branch
Sign In or Register to comment.