Skip to content

Commit

Permalink
Correctly cache the unique keys in the SQL cache (see contao/core#8712).
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed May 2, 2017
1 parent 3322a00 commit e983e5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### DEV

* Correctly cache the unique keys in the SQL cache (see contao/core#8712).
* Correctly generate the Contao language cache (see #784).

### 4.3.9 (2017-04-25)
Expand Down
3 changes: 2 additions & 1 deletion src/Cache/ContaoCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,11 @@ private function generateDcaExtracts($cacheDir)
$this->filesystem->dumpFile(
sprintf('%s/contao/sql/%s.php', $cacheDir, $table),
sprintf(
"<?php\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n\$this->blnIsDbTable = true;\n",
"<?php\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n\$this->blnIsDbTable = true;\n",
sprintf('$this->arrMeta = %s;', var_export($extract->getMeta(), true)),
sprintf('$this->arrFields = %s;', var_export($extract->getFields(), true)),
sprintf('$this->arrOrderFields = %s;', var_export($extract->getOrderFields(), true)),
sprintf('$this->arrUniqueFields = %s;', var_export($extract->getUniqueFields(), true)),
sprintf('$this->arrKeys = %s;', var_export($extract->getKeys(), true)),
sprintf('$this->arrRelations = %s;', var_export($extract->getRelations(), true))
)
Expand Down

0 comments on commit e983e5b

Please sign in to comment.