Ver código fonte

if auto clear cache is specified in conf, do not load doctype from cache

version-14
Anand Doshi 13 anos atrás
pai
commit
0920214ecf
1 arquivos alterados com 7 adições e 1 exclusões
  1. +7
    -1
      py/webnotes/model/doctype.py

+ 7
- 1
py/webnotes/model/doctype.py Ver arquivo

@@ -40,7 +40,13 @@ class _DocType:
""" """


""" """
if form:
# do not load from cache if auto cache clear is enabled
import conf
from_cache = True
if hasattr(conf, 'auto_cache_clear'):
from_cache = not conf.auto_cache_clear
if form and from_cache:
cached_doclist = self.load_from_cache() cached_doclist = self.load_from_cache()
if cached_doclist: return cached_doclist if cached_doclist: return cached_doclist




Carregando…
Cancelar
Salvar