You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version of django-rosetta are you using?: 0.9.3
The document fails to mention an important fact that if the underlying po files are writable then even if a cache is configured and rosetta cache storage points to that (for e.g., using ROSETTA_STORAGE_CLASS = 'rosetta.storage.CacheRosettaStorage') - still this cache will not be used. Only when the file is not writable this setting comes into picture.
Also this is clear from the views.py of Rosetta
@cached_property
def po_file(self):
"""Return the parsed .po file that is currently being translated/viewed.
if self.po_file_is_writable:
# If we can write changes to file, then we pull it up fresh with
# each request.
.........................................
..........................................
else:
storage = get_storage(self.request)
po_file = storage.get(self.po_file_cache_key, None)
The text was updated successfully, but these errors were encountered:
shailendra333
changed the title
Document not clear on when the cache setting comes into play for parsed PO files.
Documentation not clear on when the cache setting comes into play for parsed PO files.
Sep 13, 2020
The document fails to mention an important fact that if the underlying po files are writable then even if a cache is configured and rosetta cache storage points to that (for e.g., using ROSETTA_STORAGE_CLASS = 'rosetta.storage.CacheRosettaStorage') - still this cache will not be used. Only when the file is not writable this setting comes into picture.
Also this is clear from the views.py of Rosetta
The text was updated successfully, but these errors were encountered: