Skip to content

Commit

Permalink
remove tree cache from template warmup
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Dec 5, 2024
1 parent edb2ec9 commit 9a8b828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## [2.239.2] - 2024-12-05
- Fixed: do build tree cache on cache warmup

## [2.239.1] - 2024-12-04
- Fixed: enable_generate_database_tree_cache option not working
- Fixed: some deprecation messages
Expand Down
6 changes: 0 additions & 6 deletions src/Cache/UtilCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public function warmUp($cacheDir)
$this->framework->initialize();

$this->generateTemplateMapper($cacheDir);
$this->generateDatabaseTreeCache($cacheDir);
}

/**
Expand Down Expand Up @@ -108,9 +107,4 @@ private function generateTemplateMapper($cacheDir)
sprintf("<?php\n\nreturn %s;\n", var_export($files, true))
);
}

private function generateDatabaseTreeCache($cacheDir)
{
\Contao\System::getContainer()->get('huh.utils.cache.database_tree')->generateAllCacheTree($cacheDir);
}
}

0 comments on commit 9a8b828

Please sign in to comment.