Commit 3b7aafa9 authored by Mark Harding's avatar Mark Harding

(chore): reduce boost offset to 2.5 minutes

parent e0140852
No related merge requests found
Pipeline #74559273 failed with stages
in 15 minutes and 8 seconds
......@@ -116,10 +116,10 @@ class feed implements Interfaces\Api
$next = $boosts[1]->getTimestamp();
}
$ttl = 1800; // 30 minutes
if (($next / 1000) < strtotime('48 hours ago')) {
$ttl = 300; // 5 minutes;
}
// $ttl = 1800; // 30 minutes
// if (($next / 1000) < strtotime('48 hours ago')) {
$ttl = 150; // 2.5 minutes;
// }
$cacher->set(Core\Session::getLoggedinUser()->guid . ':boost-offset-rotator', $next, $ttl);
break;
......
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