summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2020-12-17 17:24:42 +0000
committerVictor Feyens <vfe@odoo.com>2020-12-17 17:24:42 +0000
commit10c08157cb152f111bc9df783e15632c52a61b39 (patch)
tree394637b4832e27ad01d306f6cd686783b3c7b76e /addons/website/static/src/js
parentb23dd1b20fbd656d40e2d8bc4a32a27652e50ee1 (diff)
[FIX] calendar_sms: do not clear the cache
in a cron run frequently. The cron "ir_cron_scheduler_alarm" stores its last run datetime in an ir.config.parameter. Since modifying config parameters cleans the cache, the cron clears the cache every 30 minutes, unless modified... As the cache is used to improve global system performance, clearing it frequently should be avoided as much as possible. Since v13, ir.cron records now store their lastcall datetime, there is no need to keep the information in a config parameter anymore. This commit uses this lastcall information instead, as it was done for the calendar module: See https://github.com/odoo/odoo/commit/52645a7b43be157be0782674a0f6b38359293f21 Fixes #63354 for 13+ versions. For earlier versions (12.0), it cannot be "fixed" since the lastcall information isn't available (note that the cache clear also happens in the base calendar method in 12.0). closes odoo/odoo#63549 X-original-commit: eb02393d2b2b3aee48cfd1d24766ca74bc28fb85 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Diffstat (limited to 'addons/website/static/src/js')
0 files changed, 0 insertions, 0 deletions