public function loadData() { $id = $this->id; if ($id) { $data = Cache::getObject($id); if (!$data) { $data = $this->storage->get($id); $data = TimingsMaster::createObject(json_decode($data)); Cache::putObject($id, $data); } $this->data = $data; $GLOBALS['timingsData'] = $data; } }
public function loadData() { $id = $this->id; if ($id) { $data = Cache::getObject($id); if (!$data || (int) util::array_get($_GET['nocache']) === 1 && DEBUGGING) { $data = $this->storage->get($id); $data = TimingsMaster::createObject(json_decode($data)); Cache::putObject($id, $data); } $this->data = $data; $GLOBALS['timingsData'] = $data; } }