Translations: English
Search on Docs:
ActionItem Search:

#2336: Blocks are beinng cached independent of language

Type: BugItem Feature: UserInterface Tags: ecosol
ScheduledFor: 0.36.3 Assigned to: RodrigoSouto Sites:  
Priority: 10 Status: Done  

Description of the bug

When viewing some Noosfero environment on production mode, some blocks are displayed with different languages.

Steps to reproduce

  1. Run Noosfero on production mode or change config.action_controller.perform_caching to true on config/environments/development.rb
  2. Open a tab with the environment homepage, log in and leave it there
  3. On another tab, go to "Edit sideboxes" on admin panel
  4. Change the language
  5. Edit a block that you know that has strings translated to the language you chose on previous step
    1. Tip: The environment statistics block is translated to almost all languages
    2. Don't need to change anything, the idea is to click on "Save" button to expire the block cache
  6. All the blocks will be displayed with the language you chose
  7. Go to the first tab and reload it
  8. Probably, only the block that you expired the cache and the login block will be displayed with the language you choose

This is happening because the caches are being generated without any flag/code for the language. This way, the cache is created in one language and it is displayed to everybody regardless of the user's language.

When caching a block, Noosfero must indicate the language of the cache.

-- DanielaFeitosa -- 30 Mar 2012


-- DanielaFeitosa - 18 Apr 2012
Add comment
You need to login to be able to comment.

ActionItemForm edit

Title Blocks are beinng cached independent of language
ActionItemType BugItem
Priority High
Tags ecosol
Feature UserInterface
ResponsibleDevelopers RodrigoSouto
ScheduledFor 0.36.3
Status Done
Ticket SAC:26007
Topic revision: r1 - 22 May 2015, UnknownUser

irc Talk with Devs Now!

Copyright © 2007-2019 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres