Clearing cache for multiple processes / threads

26 views
Skip to first unread message

William

unread,
Apr 8, 2019, 3:08:49 PM4/8/19
to web...@googlegroups.com
Hi all, I have been trying to clear cache using cache.ram(key, None), but the cleared cached value still appears even after clearing. I suspect this is due to multiple processes / threads. 

Does anyone know how I can clear cache for all running processes? Thank you. 

Anthony

unread,
Apr 8, 2019, 10:22:07 PM4/8/19
to web2py-users
cache.ram is separate per process. What is the logic that you are currently using to clear the cache?

William

unread,
Apr 9, 2019, 3:36:35 AM4/9/19
to web2py-users
Just 2 lines:

cache.ram(cache_key, None)
cache
.disk(cache_key, None)

Is there a way to clear cache for all processes?
Reply all
Reply to author
Forward
0 new messages