I want to cache the results of an authentication function using the cache.memoize decorator.
However the authentication function takes a username and password as arguments, and I need to maintain security.
Cache(config={'CACHE_TYPE': 'filesystem'})
@cache.memoize
def authenticate(username, password)
# some logic
return True/False
Is Flask-Cache's filesystem cache secure? Is there a way to set ownership/permissions on the flask cache's files through the module?