diff --git a/app/Services/AccountService.php b/app/Services/AccountService.php index e14aadf80..2ef8a6215 100644 --- a/app/Services/AccountService.php +++ b/app/Services/AccountService.php @@ -14,16 +14,16 @@ class AccountService { public static function get($id) { - $key = self::CACHE_KEY . ':' . $id; - $ttl = now()->addHours(12); - - return Cache::remember($key, $ttl, function() use($id) { - $fractal = new Fractal\Manager(); - $fractal->setSerializer(new ArraySerializer()); - $profile = Profile::whereNull('status')->findOrFail($id); - $resource = new Fractal\Resource\Item($profile, new AccountTransformer()); - return $fractal->createData($resource)->toArray(); - }); + // $key = self::CACHE_KEY . ':' . $id; + // $ttl = now()->addSeconds(10); + // return Cache::remember($key, $ttl, function() use($id) { + // }); + + $fractal = new Fractal\Manager(); + $fractal->setSerializer(new ArraySerializer()); + $profile = Profile::whereNull('status')->findOrFail($id); + $resource = new Fractal\Resource\Item($profile, new AccountTransformer()); + return $fractal->createData($resource)->toArray(); } } \ No newline at end of file