diff options
| author | Khoi Nguyen <khoi@nguyen.me.uk> | 2017-07-03 14:34:02 +0200 |
|---|---|---|
| committer | Khoi Nguyen <khoi@nguyen.me.uk> | 2017-07-04 10:31:09 +0200 |
| commit | 79c9f0a7a52b0d88339efcb69296ab3b66f44442 (patch) | |
| tree | 9542b4bb84d1a1d453266a50729d836486cb8aa7 /addons/web/static/src/js | |
| parent | 5a97afcce1e43bc0cced224b2506970e67fc5e95 (diff) | |
FIX web: clear cache after 'reload' client action
If the 'reload' action is triggered right after a view change, the
latter will only be effective if we refresh the page at the browser
level. To overcome this, we clear the cache every time the 'reload'
action is triggered.
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/core/misc.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/js/core/misc.js b/addons/web/static/src/js/core/misc.js index f65276551cf..5f50ff27c6e 100644 --- a/addons/web/static/src/js/core/misc.js +++ b/addons/web/static/src/js/core/misc.js @@ -122,6 +122,9 @@ function Reload(parent, action) { } var url = l.protocol + "//" + l.host + l.pathname + search + hash; + // Clear cache + core.bus.trigger('clear_cache'); + redirect(url, params.wait); } |
