parent
c2fc139b97
commit
d767d19ffb
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ def index():
|
|||
_logger.exception("Error retrieving additional data for preemptive cache from plugin {}".format(key))
|
||||
|
||||
def unless():
|
||||
disabled_for_root = request.url_root in settings().get(["server", "preemptiveCache", "exceptions"]) or not (request.url_root.startswith("http://") or request.url_root.startswith("https://")))
|
||||
disabled_for_root = request.url_root in settings().get(["server", "preemptiveCache", "exceptions"]) or not (request.url_root.startswith("http://") or request.url_root.startswith("https://"))
|
||||
if callable(additional_unless):
|
||||
return disabled_for_root or additional_unless()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue