Skip to content
Commits on Source (2)
......@@ -58,15 +58,6 @@ class campaigns implements Interfaces\Api
$limit = 500;
}
$cacher = Core\Data\cache\factory::build('Redis');
$cacheKey = Core\Session::getLoggedinUser()->guid . ':boost-offset-rotator:' . $type;
// $offset = $cacher->get($cacheKey);
$offset = null;
if (!$offset) {
$offset = 0;
}
// Options specific to newly created users (<=1 hour) and iOS users
if ($platform === 'ios') {
......@@ -77,6 +68,17 @@ class campaigns implements Interfaces\Api
$quality = 75;
}
$userGuid = Core\Session::getLoggedinUser()->guid;
$cacher = Core\Data\cache\factory::build('Redis');
$cacheKey = "{$userGuid}:boost-offset-rotator:{$type}:{$quality}:{$rating}";
// $offset = $cacher->get($cacheKey);
$offset = null;
if (!$offset) {
$offset = 0;
}
/** @var Boost\Campaigns\Manager $manager */
$manager = Di::_()->get('Boost\Campaigns\Manager');
......