Skip to content

Commit

Permalink
fix wrong rss cache partition
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 18, 2023
1 parent 51dbfae commit 9e4214c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Moonglade.Web/Controllers/SubscriptionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public async Task<IActionResult> Rss([MaxLength(64)] string routeName = null)
var route = hasRoute ? routeName.ToLower().Trim() : null;

return await _cache.GetOrCreateAsync(
hasRoute ? BlogCachePartition.PostCountCategory.ToString() : BlogCachePartition.General.ToString(), route ?? "rss", async entry =>
hasRoute ? BlogCachePartition.RssCategory.ToString() : BlogCachePartition.General.ToString(), route ?? "rss", async entry =>
{
entry.SlidingExpiration = TimeSpan.FromHours(1);
Expand Down

0 comments on commit 9e4214c

Please sign in to comment.