Use cache oldest created at in template

[MAILPOET-3646]
This commit is contained in:
Jan Lysý
2021-07-07 10:20:45 +02:00
committed by Veljko V
parent 3b9bf6142c
commit d6e709ff53
4 changed files with 16 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ var MailPoet = {
apiVersion: window.mailpoet_api_version,
emailRegex: window.mailpoet_email_regex,
wpSegmentState: window.mailpoet_wp_segment_state,
subscribersCountsCacheCreatedAt: window.mailpoet_subscribers_counts_cache_created_at,
getShortcodeLinks: () => (window.mailpoet_shortcode_links ? window.mailpoet_shortcode_links : []),
};

View File

@@ -26,7 +26,9 @@ const ListHeading = () => (
subscribersInPlanLimit={MailPoet.subscribersLimit}
/>
<SubscribersCacheMessage cacheCalculation="2021-06-28 18:22:00" />
<SubscribersCacheMessage
cacheCalculation={window.mailpoet_subscribers_counts_cache_created_at}
/>
<SubscribersLimitNotice />
<InvalidMssKeyNotice