Community mailing list archives

community@mail.odoo.com

Re: cache gone with sudo()

by
senthil
- 05/18/2016 03:48:51
copy context in temp

 Regards
Senthilnathan G
+91-94888 91888
+60-11264 82708

On Wed, May 18, 2016 at 1:17 PM, vak0160 <vak0160.work@gmail.com> wrote:
Hello Holger,

Thank you for your reply. Is there any way to keep the current cache 
while still using `sudo()`?

On 05/18/2016 02:33 PM, Holger Brunn wrote:
> > Why |sudo()| cleared the cache?
>
> caching works per environment, and an environment is defined by the
> cursor, the user and the context. So sudo doesn't actually clear the
> cache, but makes you end up in another cache.
>
> -- Therp - Maatwerk in open ontwikkeling Holger Brunn - Ontwerp en 
> implementatie mail: holger@therp.nl web: http://therp.nl phone: +31 
> (0)20 3093096
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59
> Post to: mailto:community@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>

-- 
Regards,
Andre

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe