Commit ca589525 authored by Mark Harding's avatar Mark Harding

(chore): reduce tll on boost rotator

parent af674482
No related merge requests found
Pipeline #72436127 passed with stages
in 9 minutes and 43 seconds
......@@ -103,13 +103,13 @@ class feed implements Interfaces\Api
$next = $iterator->getOffset();
if (isset($boosts[2])) { // Always offset to 3rd in list
$next = $boosts[2]->getTimestamp();
if (isset($boosts[1])) { // Always offset to 2rd in list
$next = $boosts[1]->getTimestamp();
}
$ttl = 1800; // 30 minutes
if (($next / 1000) < strtotime('48 hours ago')) {
$ttl = 300; // 5 minutes;
$ttl = 30; // 0.5 minutes;
}
$cacher->set(Core\Session::getLoggedinUser()->guid . ':boost-offset-rotator', $next, $ttl);
......
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