We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da79b7f commit a846c5fCopy full SHA for a846c5f
src/DataLoader.php
@@ -62,10 +62,8 @@ public function load($key)
62
throw new \InvalidArgumentException(self::class . '::load must be called with a value, but got null');
63
}
64
65
- if ($this->options->shouldCache()) {
66
- if ($this->promiseCache->get($key)) {
67
- return $this->promiseCache->get($key);
68
- }
+ if ($this->options->shouldCache() && $this->promiseCache->get($key)) {
+ return $this->promiseCache->get($key);
69
70
71
$promise = new Promise(
0 commit comments