diff options
| author | Raphael Collet <rco@odoo.com> | 2018-11-22 11:00:53 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2018-11-22 11:05:30 +0000 |
| commit | e181f592f33b2ae382569927537aed84689ee44f (patch) | |
| tree | 5cbd5ee2ad9b11d488e8b329a6be7827bd0c73a2 /odoo/modules/loading.py | |
| parent | ad065093eb595e0b26dfd6d245e1b598d70e9d87 (diff) | |
[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.
Diffstat (limited to 'odoo/modules/loading.py')
| -rw-r--r-- | odoo/modules/loading.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index bc95e1c461d..5fb56887948 100644 --- a/odoo/modules/loading.py +++ b/odoo/modules/loading.py @@ -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): |
