Tryton - Issues

 

Issue8449

Title Do not use cache data after commit
Priority bug Status resolved
Superseder Nosy List ced, reviewbot, roundup-bot
Type crash Components account_fr_chorus, account_payment
Assigned To ced Keywords review
Reviews 251651002,281731002
View: 251651002, 281731002

Created on 2019-06-24.09:46:41 by ced, last changed by ced.

Messages
New changeset 6144f5300389 by Cédric Krier in branch 'default':
Use clear cache after a commit
https://hg.tryton.org/tryton-env/rev/6144f5300389
New changeset 3678b9034229 by Cédric Krier in branch 'default':
Use clear cache after a commit
https://hg.tryton.org/modules/account_payment_stripe/rev/3678b9034229
New changeset 47870f8a786c by Cédric Krier in branch 'default':
Use clear cache after a commit
https://hg.tryton.org/modules/account_fr_chorus/rev/47870f8a786c
review281731002 updated at https://codereview.tryton.org/281731002/#ps271621002
review251651002 updated at https://codereview.tryton.org/251651002/#ps279621002
msg50367 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-06-24.09:46:40
After a commit, the data read out of the database are no more linked to the start of the transaction but from the last commit.
So when we do a commit inside a loop, the cache of the records may not more be valid.
History
Date User Action Args
2019-07-17 22:24:49cedsetkeyword: - backport
2019-07-08 21:21:38cedsetkeyword: + backport
2019-07-08 21:19:28roundup-botsetmessages: + msg50566
2019-07-08 21:19:24roundup-botsetmessages: + msg50565
2019-07-08 21:19:19roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg50564
2019-06-24 09:51:09reviewbotsetmessages: + msg50369
2019-06-24 09:51:01reviewbotsetnosy: + reviewbot
messages: + msg50368
2019-06-24 09:49:45cedsetstatus: in-progress -> testing
reviews: 251651002,281731002
keyword: + review
2019-06-24 09:46:41cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)