Caches query for landing page books
This commit is contained in:
parent
e8c830750a
commit
0a182e8150
5 changed files with 21 additions and 22 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue