Skip to content

Commit

Permalink
Merge pull request #12426 from totten/master-container-cache
Browse files Browse the repository at this point in the history
Change default for CIVICRM_CONTAINER_CACHE to simplify admin/developer experience
  • Loading branch information
seamuslee001 authored Jul 6, 2018
2 parents 863643d + 5497e01 commit b993682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Core/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function loadContainer() {
// services. Consequently, we assume a minimal service available -- the classloader
// has been setup, and civicrm.settings.php is loaded, but nothing else works.

$cacheMode = defined('CIVICRM_CONTAINER_CACHE') ? CIVICRM_CONTAINER_CACHE : 'always';
$cacheMode = defined('CIVICRM_CONTAINER_CACHE') ? CIVICRM_CONTAINER_CACHE : 'auto';

// In pre-installation environments, don't bother with caching.
if (!defined('CIVICRM_TEMPLATE_COMPILEDIR') || !defined('CIVICRM_DSN') || $cacheMode === 'never' || \CRM_Utils_System::isInUpgradeMode()) {
Expand Down

0 comments on commit b993682

Please sign in to comment.