[UPDATE] Cache getmininginfo too
This commit is contained in:
parent
af2e34a1c6
commit
bea6477cb0
@ -26,6 +26,11 @@ class BitcoinWrapper extends BitcoinClient {
|
|||||||
if ($data = $this->memcache->get(__FUNCTION__)) return $data;
|
if ($data = $this->memcache->get(__FUNCTION__)) return $data;
|
||||||
return $this->memcache->setCache(__FUNCTION__, parent::getinfo(), 30);
|
return $this->memcache->setCache(__FUNCTION__, parent::getinfo(), 30);
|
||||||
}
|
}
|
||||||
|
public function getmininginfo() {
|
||||||
|
$this->oDebug->append("STA " . __METHOD__, 4);
|
||||||
|
if ($data = $this->memcache->get(__FUNCTION__)) return $data;
|
||||||
|
return $this->memcache->setCache(__FUNCTION__, parent::getmininginfo(), 30);
|
||||||
|
}
|
||||||
public function getblockcount() {
|
public function getblockcount() {
|
||||||
$this->oDebug->append("STA " . __METHOD__, 4);
|
$this->oDebug->append("STA " . __METHOD__, 4);
|
||||||
if ($data = $this->memcache->get(__FUNCTION__)) return $data;
|
if ($data = $this->memcache->get(__FUNCTION__)) return $data;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user