Kaynağa Gözat

fix: error page 去除缓存

SongZihuan 2 yıl önce
ebeveyn
işleme
15076ee703
1 değiştirilmiş dosya ile 7 ekleme ve 9 silme
  1. 7 9
      templates/error.html

+ 7 - 9
templates/error.html

@@ -8,14 +8,12 @@
 {% endblock %}
 
 {% block content %}
-    {% cache conf["CACHE_EXPIRE"], ":error" %}
-        <section id="base" class="container mt-3">
-            <div class="row">
-                <div class="col-12 text-center">
-                    <p><strong> {{ error_info }} </strong></p>
-                    <a class="btn btn-warning" href="{{ url_for("base.index_page") }}"> 回到主页 </a>
-                </div>
+    <section id="base" class="container mt-3">
+        <div class="row">
+            <div class="col-12 text-center">
+                <p><strong> {{ error_info }} </strong></p>
+                <a class="btn btn-warning" href="{{ url_for("base.index_page") }}"> 回到主页 </a>
             </div>
-        </section>
-    {% endcache %}
+        </div>
+    </section>
 {% endblock %}