public function getAttributes()
{
if (config('modules.cache.enabled') === false) {
return json_decode($this->getContents(), 1);
}
return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function () {
return json_decode($this->getContents(), 1);
});
}