Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksLocalization not working with cached module ?Localization not working with cached module ?
Previous
 
Next
New Post
11/16/2005 4:46 PM
 

I've got a module which is contains a .net label and in the codebehind page_load i'm pouplating it using ....

lblVehicles.Text=Localization.GetString("lblVehicles.Text",this.LocalResourceFile);

The label is been populated correctly when i am logged in or if the module is not using caching. However if i turn module caching on (60 secs) the label is no longer populated when i am logged off??

I've tested on 3.1.0 and 3.1.1 and both have the same issue. I've also used "resourcekey" directly in the html of the label  with the same result. e.g.  <asp:Label id="lblVehicles" runat="server" cssclass="subhead" resourcekey="lblVehicles"></asp:Label>

Any ideas??  Thanks
 
New Post
12/22/2005 4:32 AM
 
When you cache a module its actual HTML output is being cached. So what you say is possible since the cached version is not checked again on any specific user setting. Only suggestion I can give you is not to use caching if you need to support multiple languages since only 1 version will be cached and used for all variants.

Vicenç Masanas
Banyoles, Girona - Spain

Disgrafic.com    PSD to DNN
 
New Post
3/2/2006 12:12 PM
 

Hi Vicenç,

I agree that you must avoid caching when supporting multiple languages. But my custom modules are all based on localization, even when I use them on a single-language website. And I'm having exactly the same problem. My modules aren't able to get localization info from my resource files when the cache is turned on. But the strange thing is that it works when I'm logged in....

I really need to use cache, and I can't find any help on forums, tutorials, etc., related to this issue. Does anyone know how to solve it?

Regards.
Rodrigo

 
New Post
3/3/2006 2:59 AM
 

Rodrigo,

You are correct, something strange is going on. I too noticed that there is a difference apparently between being logged on and not. It's somewhere on my to do list, until then, i just avoid to use module caching at all....

cheers,

erik


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksLocalization not working with cached module ?Localization not working with cached module ?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out