Skip to content

Commit 2465559

Browse files
author
rickon
committed
缓存时间调整
1 parent e022eb5 commit 2465559

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Http/Controllers/Api/BlogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function recommendArticles(Request $request)
267267
]);
268268

269269
$cacheKey = 'article_recommendations_' . $validated['type'] . '_' . md5(json_encode($validated));
270-
$expiresAt = now()->addHours(2); // 缓存2小时
270+
$expiresAt = now()->addHours(1); // 缓存2小时
271271
$fields = [
272272
'id',
273273
'title',

0 commit comments

Comments
 (0)