From 6a7bc6de1ded25b9566dd81faa9fd7987a194802 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Tue, 6 Mar 2018 13:48:57 +0100 Subject: [PATCH] memcache: fix param order in last commit --- web/yaamp/modules/api/ApiController.php | 4 ++-- web/yaamp/modules/site/SiteController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/yaamp/modules/api/ApiController.php b/web/yaamp/modules/api/ApiController.php index 1ff641a..9a5a156 100644 --- a/web/yaamp/modules/api/ApiController.php +++ b/web/yaamp/modules/api/ApiController.php @@ -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); diff --git a/web/yaamp/modules/site/SiteController.php b/web/yaamp/modules/site/SiteController.php index a96e5b1..e4c265d 100644 --- a/web/yaamp/modules/site/SiteController.php +++ b/web/yaamp/modules/site/SiteController.php @@ -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