thadeusb / flask-cache

Cache extension for Flask
http://packages.python.org/Flask-Cache/
Other
700 stars 185 forks source link

flask.ext.cache throws deprecation warnings #142

Open deidyomega opened 8 years ago

deidyomega commented 8 years ago

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.

woozyking commented 8 years ago

This starts from Flask 0.11

dappiu commented 8 years ago

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

ar-anvd commented 8 years ago

+1 for this issue.

deidyomega commented 8 years ago

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

bart3005 commented 8 years ago

Just wondering is this likely to be fix?

deidyomega commented 8 years ago

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

bart3005 commented 8 years ago

@deidyomega exactly what I was alluding to.

xcash commented 8 years ago

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?

rudaporto commented 8 years ago

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

bart3005 commented 8 years ago

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

RSully commented 8 years ago

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

sh4nks commented 8 years ago

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