Merge branch 'Preorder/update-map' into 'master'
enhanced preorder map See merge request fronk/thetool!1778
This commit is contained in:
@@ -24,10 +24,7 @@ class PreordercampaignController extends mfBaseController {
|
|||||||
json_decode($this->me->getFlag("preorder_networks")->value() ?: '[]')
|
json_decode($this->me->getFlag("preorder_networks")->value() ?: '[]')
|
||||||
));
|
));
|
||||||
|
|
||||||
array_map('unlink', glob(TEMP_DIR . "/Preordercampaign/*.json"));
|
$campaigns = array_map(function ($c) {
|
||||||
|
|
||||||
|
|
||||||
$campaigns = array_map(function ($c) {
|
|
||||||
// Helper function for field caching
|
// Helper function for field caching
|
||||||
$getCachedField = function ($campaignId, $cacheType, $callback) {
|
$getCachedField = function ($campaignId, $cacheType, $callback) {
|
||||||
$cacheKey = md5($campaignId . $cacheType);
|
$cacheKey = md5($campaignId . $cacheType);
|
||||||
|
|||||||
Reference in New Issue
Block a user