projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0081a16
)
TrackableURL - Re-enable caching
author
Tim Otten
<totten@civicrm.org>
Tue, 12 May 2020 22:04:41 +0000
(15:04 -0700)
committer
Tim Otten
<totten@civicrm.org>
Wed, 13 May 2020 06:07:08 +0000
(23:07 -0700)
CRM/Mailing/BAO/TrackableURL.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Mailing/BAO/TrackableURL.php
b/CRM/Mailing/BAO/TrackableURL.php
index 86650e3afe3dab47bf4baadd4e46f2b0d36a73a2..0113e53bb9b7cbd063c3ff63ed184369f0455515 100644
(file)
--- a/
CRM/Mailing/BAO/TrackableURL.php
+++ b/
CRM/Mailing/BAO/TrackableURL.php
@@
-76,7
+76,9
@@
class CRM_Mailing_BAO_TrackableURL extends CRM_Mailing_DAO_TrackableURL {
$urlCache[$mailing_id . $url] = $redirect;
}
- $returnUrl = CRM_Utils_System::externUrl('extern/url', "u=$id&qid=$queue_id");
+ // This looks silly - calling the hook twice. This smells like an accident. Restoring old cache-based lookup.
+ // $returnUrl = CRM_Utils_System::externUrl('extern/url', "u=$id&qid=$queue_id");
+ $returnUrl = "{$urlCache[$mailing_id . $url]}&qid={$queue_id}";
if ($hrefExists) {
$returnUrl = "href='{$returnUrl}' rel='nofollow'";