Skip to content
Snippets Groups Projects
Commit e181f592 authored by Raphael Collet's avatar Raphael Collet
Browse files

[FIX] odoo: ormcache invalidation on loading registry

Do not propagate cache invalidations to other workers when simply loading the
registry.  Only do it when installing/upgrading/uninstalling modules.
parent ad065093
No related branches found
No related tags found
No related merge requests found
......@@ -151,8 +151,6 @@ def load_module_graph(cr, graph, status=None, perform_checks=True,
module_count = len(graph)
_logger.info('loading %d modules...', module_count)
registry.clear_caches()
# register, instantiate and initialize models for each modules
t0 = time.time()
t0_sql = odoo.sql_db.sql_counter
......@@ -278,9 +276,6 @@ def load_module_graph(cr, graph, status=None, perform_checks=True,
_logger.log(25, "%s modules loaded in %.2fs, %s queries", len(graph), time.time() - t0, odoo.sql_db.sql_counter - t0_sql)
registry.clear_caches()
return loaded_modules, processed_modules
def _check_module_names(cr, module_names):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment