修复缓存时间错误

This commit is contained in:
2023-03-06 17:50:34 +08:00
parent 1cc63d9999
commit e04d406ea6

View File

@@ -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);
});