On 2016-09-19 09:07, Ali Kefia wrote: > > > Le lundi 19 septembre 2016 17:40:03 UTC+2, Cédric Krier a écrit : > > > > On 2016-09-19 08:19, Ali Kefia wrote: > > > the issue with cache on multi workers is that invalidation does not > > > propagate. > > > > Could you proof your statement? > > > > Context: multi-process. > I could miss something (that is why I am asking) > > - cache.clear: empty cache and sets ir.cache on database > - cache.get: reads from memory (does not check ir.cache) > > => No synchronization between workers to invalidate cache horizontally
It is done on each request when starting the transaction: http://hg.tryton.org/trytond/file/tip/trytond/protocols/dispatcher.py#l167 -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/20160919163916.GO29096%40tetsuo.