From 7a8d8ba34222bff7029ec3496d716017ee87e82a Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Tue, 12 Dec 2023 17:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=9B=B8=E5=85=B3=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E5=92=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Caches/TaggedArticleList.php | 2 +- app/Caches/TaggedQuestionList.php | 2 +- app/Http/Admin/Views/public/login.volt | 4 ++-- .../Logic/Article/RelatedArticleList.php | 22 ++++++++++++++----- .../Logic/Question/RelatedQuestionList.php | 22 ++++++++++++++----- 5 files changed, 38 insertions(+), 14 deletions(-) diff --git a/app/Caches/TaggedArticleList.php b/app/Caches/TaggedArticleList.php index 1c5c6df0..05640fff 100644 --- a/app/Caches/TaggedArticleList.php +++ b/app/Caches/TaggedArticleList.php @@ -13,7 +13,7 @@ use App\Repos\Article as ArticleRepo; class TaggedArticleList extends Cache { - protected $limit = 5; + protected $limit = 15; protected $lifetime = 3600; diff --git a/app/Caches/TaggedQuestionList.php b/app/Caches/TaggedQuestionList.php index f76a5b29..f6adb8b4 100644 --- a/app/Caches/TaggedQuestionList.php +++ b/app/Caches/TaggedQuestionList.php @@ -13,7 +13,7 @@ use App\Repos\Question as QuestionRepo; class TaggedQuestionList extends Cache { - protected $limit = 5; + protected $limit = 15; protected $lifetime = 3600; diff --git a/app/Http/Admin/Views/public/login.volt b/app/Http/Admin/Views/public/login.volt index 60bfce0d..50f6d698 100644 --- a/app/Http/Admin/Views/public/login.volt +++ b/app/Http/Admin/Views/public/login.volt @@ -35,7 +35,7 @@