berk / tr8n

This repository has moved to:
https://github.com/tr8n/tr8n
MIT License
280 stars 37 forks source link

Javascript and Caching Errors #43

Open iakona opened 12 years ago

iakona commented 12 years ago

When I turn caching on, I noticed that you cannot toggle inline translation mode. When I was tracing this back, I noticed that when you call the method, all it does it change the Translators attribute, but doesn't update or throw out the cache for that user (which is because the translator is only stored in the cache if they have a translation, and doesn't even store that attribute for the user)

UPDATE: fixed the javascript error, just got to fix the caching error now

berk commented 11 years ago

Which cache store do you use? I highly recommend using the dalli_store - it is much faster and it solves the problem of frozen objects.

Btw, the new version of tr8n - which is still in master (no gem yet) has a completely rewritten caching mechanism - only one cache hit per page. Makes the application lightning fast.

roshandevadiga commented 11 years ago

has this gone into the gem ? I am using dalli_store and facing the same issue. Switching using ctrl + shift + I does not toggle if caching is on