flask-cache icon indicating copy to clipboard operation
flask-cache copied to clipboard

Cache extension for Flask

Results 81 flask-cache issues
Sort by recently updated
recently updated
newest added

I am trying to run my app, getting an error `ImportError: cannot import name 'import_string' from 'werkzeug'` The error is from ``` venv/lib/python3.7/site-packages/flask_cache/__init__.py", line 24, in from werkzeug import import_string...

I am trying to store a class instance that is created in one request and then accessed in other requests. As the first request will determine the criteria of the...

I am having great speed up using flask-cache configured to work with a redis-server instance. However, if the redis-server becomes unavailable I get an error message: ``` redis.exceptions.ConnectionError ConnectionError: Error...

Here's the flask route/functionality: ``` @app.route('/') # @cache.cached(timeout=300) @cross_origin('*') def index(): user_id = request.args.get('user_id') image_count = request.args.get('image_count', 20, int) web_api = InstaClient(auto_patch=True, drop_incompat_keys=False) user_feed_info = web_api.user_feed(user_id, count=image_count) posts = []...

A really common use case for caching is that the result of an API call will change depending on query string parameters given. Right now query parameters are being ignored:...

Change deprecated name import flask.ext.cache to flask_cache.

## ERROR in Python3.6 from flask.ext.cache import make_template_fragment_key ``` File "/usr/local/lib/python3.6/site-packages/flask_cache/__init__.py", line 156, in init_app from .jinja2ext import CacheExtension, JINJA_CACHE_ATTR_NAME File "/usr/local/lib/python3.6/site-packages/flask_cache/jinja2ext.py", line 33, in from flask.ext.cache import make_template_fragment_key ```...

line33: `from flask.ext.cache import make_template_fragment_key` should change to `from flask_cache import make_template_fragment_key` Otherwise, there will be an error in flask 1.0.2

https://pythonhosted.org/Flask-Cache/ ``` >>> adder1 = Adder() >>> adder2 = Adder() >>> adder1.add(3) 3.23214234 >>> adder2.add(3) 3.60898509 >>> cache.delete_memoized(adder.add) >>> adder1.add(3)cache.delete_memoized(adder.add) ```` cache.delete_memoized(adder.add) line should refer to adder1

changed dependency import statement from: from flask.ext.cache import make_template_fragment_key to: from flask_cache import make_template_fragment_key flask version 1.1.1 python 3 ++