getCacheStatus 取得某個 group 的 cache 功能是開是關
public static getCacheStatus ( string $group ) : void | ||
$group | string | |
return | void |
/** * 設定 CACHE 狀態 */ public function testEnableCache() { Pix_Table::enableCache(Pix_Table::CACHE_ALL); $this->assertEquals(Pix_Table::getCacheStatus(Pix_Table::CACHE_ALL), true); Pix_Table::disableCache(Pix_Table::CACHE_ALL); $this->assertEquals(Pix_Table::getCacheStatus(Pix_Table::CACHE_ALL), null); }