Caches query for landing page books

This commit is contained in:
Mouse Reeve
2022-01-09 13:04:41 -08:00
parent e8c830750a
commit 0a182e8150
5 changed files with 21 additions and 22 deletions

View File

@ -1,6 +1,8 @@
{% extends 'landing/layout.html' %}
{% load i18n %}
{% load cache %}
{% load bookwyrm_tags %}
{% block panel %}
<div class="block is-hidden-tablet">
@ -9,6 +11,7 @@
{% get_current_language as LANGUAGE_CODE %}
{% cache 60 * 60 LANGUAGE_CODE %}
{% get_landing_books as books %}
<section class="tile is-ancestor">
<div class="tile is-vertical is-6">
<div class="tile is-parent">