We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb00e7a commit e534a5aCopy full SHA for e534a5a
1 file changed
common/components/WechatCache.php
@@ -100,6 +100,6 @@ public function deleteMultiple($keys)
100
*/
101
public function has($key)
102
{
103
- return (Yii::$app->cache->exists($key) || $this->setTime > time() - 1);
+ return (Yii::$app->cache->get($key) || $this->setTime > (time() - 1));
104
}
105
-}
+}
0 commit comments