From 61eb1c5a86729895faaf1e7ef7228b8bdb4e4cf6 Mon Sep 17 00:00:00 2001 From: orangix Date: Mon, 5 Feb 2024 22:39:49 +0100 Subject: [PATCH] remove previous button and increase cache time --- api/tag.go | 2 +- views/post.hbs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/api/tag.go b/api/tag.go index f2501b9..2533af7 100644 --- a/api/tag.go +++ b/api/tag.go @@ -105,6 +105,6 @@ func (client *Client) FetchTag(tag string, sort string, page string) (Tag, error Background: "/" + data.Get("background_id").String() + ".webp", } - client.Cache.Set(tag+sort+page+"-tag", tagData, cache.DefaultExpiration) + client.Cache.Set(tag+sort+page+"-tag", tagData, 4*cache.DefaultExpiration) return tagData, nil } diff --git a/views/post.hbs b/views/post.hbs index ddac50e..476d4e7 100644 --- a/views/post.hbs +++ b/views/post.hbs @@ -54,10 +54,6 @@ {{#noteq next ""}}
- {{#noteq prev ""}} - - < - {{/noteq}} Next >