Skip to content

Commit

Permalink
memcache: fix param order in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Mar 6, 2018
1 parent 1e06755 commit 6a7bc6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/yaamp/modules/api/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function actionStatus()
$json = json_encode($stats);
echo $json;

controller()->memcache->set("api_status", $json, MEMCACHE_COMPRESSED, 30);
controller()->memcache->set("api_status", $json, 30, MEMCACHE_COMPRESSED);
}

public function actionCurrencies()
Expand Down Expand Up @@ -183,7 +183,7 @@ public function actionCurrencies()
$data[$symbol]['symbol'] = $coin->symbol2;
}
$json = json_encode($data);
controller()->memcache->set("api_currencies", $json, MEMCACHE_COMPRESSED, 15);
controller()->memcache->set("api_currencies", $json, 15, MEMCACHE_COMPRESSED);
}

echo str_replace("},","},\n", $json);
Expand Down
2 changes: 1 addition & 1 deletion web/yaamp/modules/site/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ protected function renderPartialAlgoMemcached($partial, $cachetime=15)
$html = ob_get_clean();
echo $html;

controller()->memcache->set($memkey, $html, MEMCACHE_COMPRESSED, $cachetime);
controller()->memcache->set($memkey, $html, $cachetime, MEMCACHE_COMPRESSED);
}

// Pool Status : public right panel with all algos and live stats
Expand Down

0 comments on commit 6a7bc6d

Please sign in to comment.