@@ -135,7 +135,7 @@ RATELIMIT_STORAGE_URL = "{% if redis_enabled %}{{ redis_uri }}{% else %}memory:/
# ------------------------------
# For all available caching types, have a look at the Flask-Cache docs
# https://pythonhosted.org/Flask-Caching/#configuring-flask-caching
-CACHE_TYPE = "{% if redis_enabled %}redis{% else %}simple{% endif %}"
+CACHE_TYPE = "{% if redis_enabled %}RedisCache{% else %}SimpleCache{% endif %}"
CACHE_DEFAULT_TIMEOUT = 60
@@ -234,7 +234,7 @@ class DefaultConfig(object):
- CACHE_TYPE = "simple"
+ CACHE_TYPE = "SimpleCache"
# For redis:
#CACHE_TYPE = "redis"
@@ -13,7 +13,7 @@ import re
import mistune
from flask import url_for
-from jinja2 import Markup
+from markupsafe import Markup
from pluggy import HookimplMarker
from pygments import highlight
from pygments.formatters import HtmlFormatter
@@ -11,7 +11,7 @@
"""
from flask import current_app, flash, redirect, url_for
from flask_babelplus import gettext as _
from flaskbb.extensions import db
from flaskbb.plugins.models import PluginRegistry