1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 19:34:04 +00:00

Make null falsey for cache config because config is not merged recursively

This commit is contained in:
Samuel Štancl 2020-03-17 15:30:24 +01:00
parent f6115d590a
commit 776af4643c
3 changed files with 3 additions and 4 deletions

View file

@ -251,7 +251,6 @@ class DatabaseStorageDriver implements StorageDriver, CanDeleteKeys, CanFindByAn
public function usesCache(): bool
{
// null is also truthy here
return $this->app['config']['tenancy.storage_drivers.db.cache_store'] !== false;
return $this->app['config']['tenancy.storage_drivers.db.cache_store'] !== null;
}
}