Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(feat): implemented new offsets from v2/boost/feeds
· 92748bec
Marcelo Rivera
authored
Jul 18, 2019
92748bec
(fix): if offset isn't cached, set it as 0
· 683c8704
Marcelo Rivera
authored
Jul 18, 2019
683c8704
Hide whitespace changes
Inline
Side-by-side
Controllers/api/v2/boost/fetch/campaigns.php
View file @
683c8704
...
...
@@ -62,6 +62,10 @@ class campaigns implements Interfaces\Api
$cacheKey
=
Core\Session
::
getLoggedinUser
()
->
guid
.
':boost-offset-rotator:'
.
$type
;
$offset
=
$cacher
->
get
(
$cacheKey
);
if
(
!
$offset
)
{
$offset
=
0
;
}
// Options specific to newly created users (<=1 hour) and iOS users
if
(
$platform
===
'ios'
)
{
...
...
@@ -77,8 +81,6 @@ class campaigns implements Interfaces\Api
$data
=
[];
$offset
=
null
;
try
{
$result
=
$manager
->
fetch
([
'limit'
=>
$limit
,
...
...