protected function data()
{
if (!$this->loaded) {
$this->data = $this->original = $this->cache->remember('fluxbb.config', 24 * 60, function () {
$data = $this->database->table('config')->get();
$cache = array();
foreach ($data as $row) {
$cache[$row->conf_name] = $row->conf_value;
}
return $cache;
});
$this->loaded = true;
}
return $this->data;
}