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
175
Issues
175
List
Boards
Labels
Service Desk
Milestones
Merge Requests
41
Merge Requests
41
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
ca589525
Commit
ca589525
authored
5 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): reduce tll on boost rotator
parent
af674482
master
No related merge requests found
Pipeline
#72436127
passed with stages
in 9 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
feed.php
Controllers/api/v2/boost/feed.php
+3
-3
No files found.
Controllers/api/v2/boost/feed.php
View file @
ca589525
...
...
@@ -103,13 +103,13 @@ class feed implements Interfaces\Api
$next
=
$iterator
->
getOffset
();
if
(
isset
(
$boosts
[
2
]))
{
// Always offset to 3
rd in list
$next
=
$boosts
[
2
]
->
getTimestamp
();
if
(
isset
(
$boosts
[
1
]))
{
// Always offset to 2
rd in list
$next
=
$boosts
[
1
]
->
getTimestamp
();
}
$ttl
=
1800
;
// 30 minutes
if
((
$next
/
1000
)
<
strtotime
(
'48 hours ago'
))
{
$ttl
=
30
0
;
//
5 minutes;
$ttl
=
30
;
// 0.
5 minutes;
}
$cacher
->
set
(
Core\Session
::
getLoggedinUser
()
->
guid
.
':boost-offset-rotator'
,
$next
,
$ttl
);
...
...
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