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>
This commit is contained in:
Justin Kromlinger 2020-11-19 23:27:21 +01:00 committed by Lukas Fleischer
parent eb11943fed
commit d5d333005e

View file

@ -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;
?>