Skip to content

Instantly share code, notes, and snippets.

diff --git a/CRM/Utils/Cache.php b/CRM/Utils/Cache.php
index 94b2cfb..d03955d 100644
--- a/CRM/Utils/Cache.php
+++ b/CRM/Utils/Cache.php
@@ -105,6 +105,7 @@ class CRM_Utils_Cache {
$defaults = array();
break;
+ case 'Redis':
case 'Memcache':
diff --git a/CRM/Extension/Mapper.php b/CRM/Extension/Mapper.php
index f765afb..ac27547 100755
--- a/CRM/Extension/Mapper.php
+++ b/CRM/Extension/Mapper.php
@@ -288,6 +288,10 @@ class CRM_Extension_Mapper {
$moduleExtensions = $this->cache->get($this->cacheKey . '/moduleFiles');
}
+ if ($fresh == 'NOCACHE') {
+ $moduleExtensions = NULL;
@herbdool
herbdool / pantheon-redis-settings.patch
Created April 17, 2015 01:43
Pantheon redis settings
diff --git a/templates/CRM/common/civicrm.settings.php.template b/templates/CRM/common/civicrm.settings.php.template
index 41518ca..21dc8fe 100644
--- a/templates/CRM/common/civicrm.settings.php.template
+++ b/templates/CRM/common/civicrm.settings.php.template
@@ -281,6 +281,22 @@ if (!defined('CIVICRM_DOMAIN_ID')) {
*/
/**
+* Redis Caching
+* Using Redis Caching via an extention instead of database -- uncomment below to use.
@herbdool
herbdool / redis-caching-civicrm-4-5.patch
Created April 17, 2015 01:33
redis-caching-civicrm-4-5.patch
diff --git a/CRM/Utils/Cache.php b/civicrm/CRM/Utils/Cache.php
index e2cdd2d..b106c3c 100644
--- a/CRM/Utils/Cache.php
+++ b/CRM/Utils/Cache.php
@@ -108,6 +108,7 @@ class CRM_Utils_Cache {
$defaults = array();
break;
+ case 'Redis':
case 'Memcache':
@herbdool
herbdool / pantheon-settings-civicrm-4-5.patch
Last active August 29, 2015 14:16
pantheon-settings-civicrm-4-5.patch
--- /templates/CRM/common/civicrm.settings.php.template
+++ /templates/CRM/common/civicrm.settings.php.template
@@ -54,6 +54,60 @@
define( 'CIVICRM_UF' , '%%cms%%' );
}
+ /**
+ * Pantheon Systems:
+ *
+ * Repopulate needed variables based on the Pantheon environment if applicable.
@herbdool
herbdool / gist:e2253c284422f205397f
Created June 16, 2014 14:52
Crappy time entry list
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta name="Name" content="App Example: Time Logs"/>
<title>Time logs</title>
<script type="text/javascript" src="/apps/1.26/sdk.js"></script>
<script type="text/javascript">
function timeLogs() {