Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Commonwell
/
broker-site
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
72b00319
authored
2023-09-12 14:20:59 -0400
by
Jeremy Groot
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
circulars
1 parent
0e54b604
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
wp-content/themes/commonwell-broker/inc/shortcodes-circulars.php
wp-content/themes/commonwell-broker/inc/shortcodes-circulars.php
View file @
72b0031
...
...
@@ -50,18 +50,18 @@ function circular_list($atts){
$campaignItemArray
=
[];
if
(
$client
->
exists
(
'circular_data'
))
{
try
{
$campaignItemArray
=
unserialize
(
$client
->
get
(
'circular_data'
));
}
catch
(
Throwable
$e
)
{
error_log
(
"ERROR in circular cached data = "
.
$e
->
getMessage
());
}
}
if
(
empty
(
$campaignItemArray
))
{
//
if($client->exists('circular_data')) {
//
try {
//
$campaignItemArray = unserialize($client->get('circular_data'));
//
} catch(Throwable $e) {
//
error_log("ERROR in circular cached data = " . $e->getMessage());
//
}
//
}
//
if(empty($campaignItemArray)) {
$campaignItemArray
=
campaign_Monitor_GetData
(
$order
);
$campaignItemArray
=
extractCircularDataForCache
(
$campaignItemArray
);
$client
->
set
(
'circular_data'
,
serialize
(
$campaignItemArray
));
}
//
$client->set('circular_data', serialize($campaignItemArray));
//
}
$organized_term_filter
=
array_keys
(
$campaignItemArray
);
...
...
Please
register
or
sign in
to post a comment