Skip to content

Commit 443d2de

Browse files
committed
Register cache to app.extensions
1 parent d25d690 commit 443d2de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flask_oauthlib/contrib/cache.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def __init__(self, app, config_prefix='OAUTHLIB', **kwargs):
2020
raise RuntimeError(
2121
'`%s` is not a valid cache type!' % cache_type
2222
)
23+
app.extensions[config_prefix.lower() + '_cache'] = self.cache
2324

2425
def __getattr__(self, key):
2526
try:

0 commit comments

Comments
 (0)