Commit d5d33300 authored by hashworks's avatar hashworks Committed by Lukas Fleischer
Browse files

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's avatarLukas Fleischer <lfleischer@archlinux.org>
parent eb11943f
......@@ -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;
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment