Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
204
Issues
204
List
Boards
Labels
Service Desk
Milestones
Merge Requests
27
Merge Requests
27
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
3b7aafa9
Commit
3b7aafa9
authored
18 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): reduce boost offset to 2.5 minutes
parent
e0140852
master
No related merge requests found
Pipeline
#74559273
failed with stages
in 15 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
feed.php
Controllers/api/v2/boost/feed.php
+4
-4
No files found.
Controllers/api/v2/boost/feed.php
View file @
3b7aafa9
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment