Make sure to pass the correct arguments to the cache hash method
This commit is contained in:
parent
0ae52a13f3
commit
f57c24abe4
@ -87,7 +87,7 @@ class Model {
|
|||||||
*/
|
*/
|
||||||
public function getUserIdByUsername(string $username)
|
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())
|
if ( ! $cacheItem->isHit())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user