memcache: fix param order in last commit

This commit is contained in:
Tanguy Pruvot 2018-03-06 13:48:57 +01:00
parent 1e06755a74
commit 6a7bc6de1d
2 changed files with 3 additions and 3 deletions

View file

@ -96,7 +96,7 @@ class ApiController extends CommonController
$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()
@ -183,7 +183,7 @@ class ApiController extends CommonController
$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);

View file

@ -428,7 +428,7 @@ class SiteController extends CommonController
$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