CRM_Utils_Cache::create - Use factory function
authorTim Otten <totten@civicrm.org>
Sat, 12 Sep 2015 03:36:44 +0000 (20:36 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 17 Sep 2015 22:49:30 +0000 (15:49 -0700)
commita47044042eb3aee21ca20a7828a0cf5a09399614
treef9b8c3a9fc46af6324878fa19295c25290047bf4
parent0d09647742ff9d8b13160ad19dd7800aaa1ceb6b
CRM_Utils_Cache::create - Use factory function

Low-level tools like GenCode may run without access to a database. When we
try to use caching in central code, the cache-accesses are prone to
crashing. The problem -- in this environment, we shouldn't even try to use
databse for caching.

`CRM_Utils_Cache::create()` will attempt to create the best cache it can,
depending on what services are available.
CRM/Core/BAO/Setting.php
CRM/Core/CommunityMessages.php
CRM/Core/Resources.php
CRM/Cxn/CiviCxnHttp.php
CRM/Extension/System.php
CRM/Utils/Cache.php
Civi/Core/Container.php