[Flask] Is filesystem cache safe between processes?

Dorian Hoxha dorian.hoxha at gmail.com
Fri Mar 2 10:50:11 EST 2018


What about uwsgi caching ?
They can share. I don't know about "writing" though.
May have conflict 2 processes writing to the same file at the same time.
File-based caching was used a lot in php-life when I used to do it, so it
should work.

On Fri, Mar 2, 2018 at 2:42 PM, Skip Montanaro <skip.montanaro at gmail.com>
wrote:

> Looking to add a Flask cache (flask_cache module) for an application
> which sits behind uwsgi. My Flask app will thus exist as multiple
> worker processes. Can they share the same filesystem-based cache? This
> is my first foray into caching in Flask, so I don't want to
> immediately dive into more complex solutions like Redis or memcached
> caching.
>
> Thx,
>
> Skip Montanaro
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20180302/3cfcc873/attachment.html>


More information about the Flask mailing list