Make sure to pass the correct arguments to the cache hash method
This commit is contained in:
parent
04e8a9e514
commit
192618b890
@ -87,7 +87,7 @@ class Model {
|
||||
*/
|
||||
public function getUserIdByUsername(string $username)
|
||||
{
|
||||
$cacheItem = $this->cache->getItem($this->getHashForMethodCall($this, __METHOD__, $username));
|
||||
$cacheItem = $this->cache->getItem($this->getHashForMethodCall($this, __METHOD__, [$username]));
|
||||
|
||||
if ( ! $cacheItem->isHit())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user