diff --git a/sources/source-Superfecta_Cache.module b/sources/source-Superfecta_Cache.module
index 21594528..c1ea55ab 100644
--- a/sources/source-Superfecta_Cache.module
+++ b/sources/source-Superfecta_Cache.module
@@ -16,25 +16,25 @@ class Superfecta_Cache extends superfecta_base {
'default' => 120
),
'CID_Exclusion_Rules' => array(
- 'description' => 'Incoming calls with CID matching the patterns specified here will not be cached. If this is
+ 'description' => 'Incoming calls with CID matching the patterns specified here will not be cached. If this is
left blank, all CIDs will be cached.
-
Rules:
- X matches any digit from 0-9
- Z matches any digit from 1-9
- N matches any digit from 2-9
- [1237-9] matches any digit or letter in the brackets (in this
- example, 1,2,3,7,8,9)
- . wildcard, matches one or more characters (not
- allowed before a | or +)
- | removes a dialing prefix from the number (for
- example, 613|NXXXXXX would match when some one dialed "6135551234" but would only
+
Rules:
+ X matches any digit from 0-9
+ Z matches any digit from 1-9
+ N matches any digit from 2-9
+ [1237-9] matches any digit or letter in the brackets (in this
+ example, 1,2,3,7,8,9)
+ . wildcard, matches one or more characters (not
+ allowed before a | or +)
+ | removes a dialing prefix from the number (for
+ example, 613|NXXXXXX would match when some one dialed "6135551234" but would only
pass "5551234" to the Superfecta look up.)
- + adds a dialing prefix to the number (for
- example, 1613+NXXXXXX would match when someone dialed "5551234"
- and would pass "16135551234" to the Superfecta look up.)
+ + adds a dialing prefix to the number (for
+ example, 1613+NXXXXXX would match when someone dialed "5551234"
+ and would pass "16135551234" to the Superfecta look up.)
- You can also use both + and |, for example: 01+0|1ZXXXXXXXXX would match
- "016065551234" and dial it as "0116065551234" Note that the order does not matter, eg.
+ You can also use both + and |, for example: 01+0|1ZXXXXXXXXX would match
+ "016065551234" and dial it as "0116065551234" Note that the order does not matter, eg.
0|01+1ZXXXXXXXXX does the same thing.',
'type' => 'textarea'
)
@@ -79,7 +79,9 @@ class Superfecta_Cache extends superfecta_base {
//People might not have anything in Exclusion Rules, account for this
$run_param['CID_Exclusion_Rules'] = isset($run_param['CID_Exclusion_Rules']) ? $run_param['CID_Exclusion_Rules'] : '';
$rule_match = $this->match_pattern_all(!empty($run_param['CID_Exclusion_Rules']) ? $run_param['CID_Exclusion_Rules'] : '', $thenumber);
-
+ if($first_caller_id === "CID Superfecta"){
+ return;
+ }
if ((!$rule_match['status']) || (!$rule_match['number'])) {
if (!$cache_found && ($first_caller_id != '')) {
$sql = "REPLACE INTO superfectacache (number,callerid,dateentered)