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

flask.ext.cache throws deprecation warnings

Open deidyomega opened this issue 8 years ago • 12 comments

When using flask_cache:

ExtDeprecationWarning: Importing flask.ext.cache is deprecated, use flask_cache instead.

Even if user code is correct (using flask_cache instead of flask.ext.cache) the warning is still thrown. I suspect this is because internally an import to flask.ext.cache is called, thus spawning the warning.

deidyomega avatar Jun 05 '16 03:06 deidyomega

This starts from Flask 0.11

woozyking avatar Jun 07 '16 14:06 woozyking

I didn't saw the issue before, but just created a pull request for this #144 It's a while that this import format is reported as deprecate (since the long standing 0.10 for sure), I think is relatively safe to change to the new format

dappiu avatar Jun 07 '16 22:06 dappiu

+1 for this issue.

ar-anvd avatar Jun 14 '16 22:06 ar-anvd

I created a pull request for this, however this pull is the best one I've seen out of the group to resolve this issue:

https://github.com/thadeusb/flask-cache/pull/139

deidyomega avatar Jun 17 '16 20:06 deidyomega

Just wondering is this likely to be fix?

bart3005 avatar Jun 18 '16 02:06 bart3005

Off what @bart3005 said, is anyone actively maintaining this package? Last commit was Sep 21, 2014.

deidyomega avatar Jun 18 '16 22:06 deidyomega

@deidyomega exactly what I was alluding to.

bart3005 avatar Jun 18 '16 23:06 bart3005

yeah looking at the author's profile he's not using github for a year... is anyone planning on contacting him for a takeover of the package?

xcash avatar Jun 20 '16 16:06 xcash

+1 to make a release and upload package to pypi :-)

rudaporto avatar Jun 21 '16 20:06 rudaporto

I think this really needs taking over. I wonder if the owner would transfer?

bart3005 avatar Jun 22 '16 12:06 bart3005

I reached out over email with a link to this thread.

RSully avatar Jun 27 '16 14:06 RSully

If anyone is interested, I forked this extension, merged a bunch of PRs and released it under a slightly different name (Flask-Caching).

All the merged PRs can be found in the changelog: https://pythonhosted.org/Flask-Caching/#version-1-0-0-2016-07-05

sh4nks avatar Jul 25 '16 11:07 sh4nks