From e04d406ea642a4de4993131348f2f00fcefea1aa Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 6 Mar 2023 17:50:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=93=E5=AD=98=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/app.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/route/app.php b/route/app.php index b353421..93ddf09 100644 --- a/route/app.php +++ b/route/app.php @@ -37,7 +37,7 @@ Route::rule('/sitemap.xml', function (Request $request) { $last_etag = md5($content); - Cache::set($cache_key, $last_etag); + Cache::set($cache_key, $last_etag, 600); return xml($content)->eTag($last_etag); }); @@ -64,7 +64,7 @@ Route::rule('/rss1.xml', function (Request $request) { $last_etag = md5($content); - Cache::set($cache_key, $last_etag); + Cache::set($cache_key, $last_etag, 600); return xml($content)->eTag($last_etag); }); @@ -90,7 +90,7 @@ Route::rule('/rss2.xml', function (Request $request) { $last_etag = md5($content); - Cache::set($cache_key, $last_etag); + Cache::set($cache_key, $last_etag, 600); return xml($content)->eTag($last_etag); }); @@ -116,7 +116,7 @@ Route::rule('/atom.xml', function (Request $request) { $last_etag = md5($content); - Cache::set($cache_key, $last_etag); + Cache::set($cache_key, $last_etag, 600); return xml($content)->eTag($last_etag); }); \ No newline at end of file