mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
eb11943fed
commit
d5d333005e
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ $image->description = "AUR Newest Packages Feed";
|
||||||
$rss->image = $image;
|
$rss->image = $image;
|
||||||
|
|
||||||
#Get the latest packages and add items for them
|
#Get the latest packages and add items for them
|
||||||
$packages = latest_pkgs(20);
|
$packages = latest_pkgs(100);
|
||||||
|
|
||||||
foreach ($packages as $indx => $row) {
|
foreach ($packages as $indx => $row) {
|
||||||
$item = new FeedItem();
|
$item = new FeedItem();
|
||||||
|
@ -56,6 +56,6 @@ foreach ($packages as $indx => $row) {
|
||||||
|
|
||||||
#save it so that useCached() can find it
|
#save it so that useCached() can find it
|
||||||
$feedContent = $rss->createFeed();
|
$feedContent = $rss->createFeed();
|
||||||
set_cache_value($feed_key, $feedContent, 1800);
|
set_cache_value($feed_key, $feedContent, 600);
|
||||||
echo $feedContent;
|
echo $feedContent;
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue