瀏覽代碼

Fix cache collision in blog index by adding tag to cache key (#592)

Fixes #590
Divyansh8843 2 周之前
父節點
當前提交
3c7e3af163
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bakerydemo/templates/blog/blog_index_page.html

+ 1 - 1
bakerydemo/templates/blog/blog_index_page.html

@@ -37,7 +37,7 @@
 
         <div class="blog-list">
             {% if posts %}
-                {% wagtailcache 500 posts %}
+                {% wagtailcache 500 posts tag %}
                     {% for blog in posts %}
                         {% include "includes/card/blog-listing-card.html" %}
                     {% endfor %}