diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2018-11-23 16:04:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-23 16:04:32 +0100 |
| commit | cd2637cfdf0ec2c5dc2fa2b74b29fdffac822e87 (patch) | |
| tree | e26966ed9e8d8b75a05b86870b9a8c6515a5f871 /odoo/modules/loading.py | |
| parent | 904989215212160741d54062d57ea9d0bb0f3b46 (diff) | |
| parent | c96d4cdbadf8d15abcad19e8f5839b46bb025e04 (diff) | |
[MERGE] Avoid some unnecessary ormcache invalidations
Avoid invalidating ormcache when possible.
There are currently too many invalidations, which makes the ormcache less effective in practice.
closes odoo/odoo#28993
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): |
