Skip to content
Snippets Groups Projects
Unverified Commit 00486d04 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #17740 from totten/5.27-container-cache

(#1846) Ensure that the `Container` is always fresh when upgrading
parents 2bc6d5d6 89fa20c8
No related branches found
No related tags found
No related merge requests found
......@@ -141,6 +141,14 @@ class CRM_Core_Config_Runtime extends CRM_Core_Config_MagicMerge {
defined('CIVICRM_DOMAIN_ID') ? CIVICRM_DOMAIN_ID : 1,
// e.g. one codebase, multi database
parse_url(CIVICRM_DSN, PHP_URL_PATH),
// e.g. when you load a new version of the codebase, use different caches
// Note: in principle, the version number is just a proxy for a dozen other signals (new versions of file A, B, C).
// Proper caches should reset whenever the underlying signal (file A, B, or C) changes. However, bugs in this
// behavior often go un-detected during dev/test. Including the software-version basically mitigates the problem
// for sysadmin-workflows - so that such bugs should only impact developer-workflows.
\CRM_Utils_System::version(),
// e.g. CMS vs extern vs installer
\CRM_Utils_Array::value('SCRIPT_FILENAME', $_SERVER, ''),
// e.g. name-based vhosts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment