Closed mkinyua53 closed 4 months ago
Ensure that permissions are actually retrieved from the cache if it (cache) is not disabled.
The current method of calling $this->permissions would run a query against the database regardless of whether the cache was set or not.
$this->permissions
This pull request fixes that by running the find against the Collection in cache.
Thanks for the PR @mkinyua53! Tests are all failing however
Ensure that permissions are actually retrieved from the cache if it (cache) is not disabled.
The current method of calling
$this->permissions
would run a query against the database regardless of whether the cache was set or not.This pull request fixes that by running the find against the Collection in cache.