Skip to content

Commit b9b13eb

Browse files
authored
Remove QueryCache (#209)
1 parent 5013419 commit b9b13eb

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/ConnectionPDO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class ConnectionPDO extends AbstractConnectionPDO
2424
{
2525
public function createCommand(string $sql = null, array $params = []): CommandPDOInterface
2626
{
27-
$command = new CommandPDO($this, $this->queryCache);
27+
$command = new CommandPDO($this);
2828

2929
if ($sql !== null) {
3030
$command->setSql($sql);

tests/Support/TestTrait.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ protected function getConnection(bool $fixture = false): ConnectionPDOInterface
2525
{
2626
$pdoDriver = new PDODriver($this->getDsn(), 'root', 'root');
2727
$pdoDriver->setCharset('utf8');
28-
$db = new ConnectionPDO($pdoDriver, DbHelper::getQueryCache(), DbHelper::getSchemaCache());
28+
$db = new ConnectionPDO(
29+
$pdoDriver,
30+
DbHelper::getSchemaCache()
31+
);
2932

3033
if ($fixture) {
3134
DbHelper::loadFixture($db, __DIR__ . "/Fixture/$this->fixture");

0 commit comments

Comments
 (0)