diff options
author | Justin Kromlinger <hashworks@archlinux.org> | 2020-11-19 23:27:21 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2021-02-20 17:25:21 +0100 |
commit | d5d333005eafb338fc5aefff9d4426cc23dbd84c (patch) | |
tree | 5baeecbd4d1147384cbced40e3719d93d8063cbe /web | |
parent | eb11943fed16462e089891b128fd01f9e460b114 (diff) | |
download | aur-d5d333005eafb338fc5aefff9d4426cc23dbd84c.tar.gz aur-d5d333005eafb338fc5aefff9d4426cc23dbd84c.tar.xz |
RSS: Decrease cache time and increase item count
I think after 10-15 years we might want to adjust those values. With a
30min cache and 20 items per creation I would bet some new AUR packages
might be swept under the carpet.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/html/rss.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/rss.php b/web/html/rss.php index b67f862d..1e6335cf 100644 --- a/web/html/rss.php +++ b/web/html/rss.php @@ -40,7 +40,7 @@ $image->description = "AUR Newest Packages Feed"; $rss->image = $image; #Get the latest packages and add items for them -$packages = latest_pkgs(20); +$packages = latest_pkgs(100); foreach ($packages as $indx => $row) { $item = new FeedItem(); @@ -56,6 +56,6 @@ foreach ($packages as $indx => $row) { #save it so that useCached() can find it $feedContent = $rss->createFeed(); -set_cache_value($feed_key, $feedContent, 1800); +set_cache_value($feed_key, $feedContent, 600); echo $feedContent; ?> |