mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
memcache: fix param order in last commit
This commit is contained in:
parent
1e06755a74
commit
6a7bc6de1d
2 changed files with 3 additions and 3 deletions
|
@ -96,7 +96,7 @@ class ApiController extends CommonController
|
||||||
$json = json_encode($stats);
|
$json = json_encode($stats);
|
||||||
echo $json;
|
echo $json;
|
||||||
|
|
||||||
controller()->memcache->set("api_status", $json, MEMCACHE_COMPRESSED, 30);
|
controller()->memcache->set("api_status", $json, 30, MEMCACHE_COMPRESSED);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function actionCurrencies()
|
public function actionCurrencies()
|
||||||
|
@ -183,7 +183,7 @@ class ApiController extends CommonController
|
||||||
$data[$symbol]['symbol'] = $coin->symbol2;
|
$data[$symbol]['symbol'] = $coin->symbol2;
|
||||||
}
|
}
|
||||||
$json = json_encode($data);
|
$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);
|
echo str_replace("},","},\n", $json);
|
||||||
|
|
|
@ -428,7 +428,7 @@ class SiteController extends CommonController
|
||||||
$html = ob_get_clean();
|
$html = ob_get_clean();
|
||||||
echo $html;
|
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
|
// Pool Status : public right panel with all algos and live stats
|
||||||
|
|
Loading…
Add table
Reference in a new issue