fix: increment translation version normally instead of incrby
This commit is contained in:
parent
1a03e5af8d
commit
81eb7d6892
1 changed files with 2 additions and 4 deletions
|
|
@ -264,10 +264,8 @@ def get_translation_version() -> str:
|
|||
|
||||
def bump_translation_version():
|
||||
"""Increment the translation version so browser caches are invalidated."""
|
||||
try:
|
||||
frappe.cache.incrby(TRANSLATION_VERSION_KEY, 1)
|
||||
except Exception:
|
||||
frappe.cache.set_value(TRANSLATION_VERSION_KEY, 1)
|
||||
current = frappe.cache.get_value(TRANSLATION_VERSION_KEY) or 0
|
||||
frappe.cache.set_value(TRANSLATION_VERSION_KEY, int(current) + 1)
|
||||
|
||||
|
||||
def get_messages_for_app(app, deduplicate=True):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue