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