Commit Graph

356 Commits

Author SHA1 Message Date
wxa
622ae8d4df Deactivate inactive subscribers by ID range for performance reasons [MAILPOET-2392] 2019-10-16 13:55:01 +01:00
73bc62227a Replace log topics strings by constants
[MAILPOET-2444]
2019-10-10 12:36:06 +01:00
e4262b0a6d Refactor Cron to use logger_factory instance
[MAILPOET-2444]
2019-10-10 12:36:06 +01:00
beccbea6e2 Refactor Mailpoet\Logging\Logger to LoggerFactory
[MAILPOET-2444]
2019-10-10 12:36:06 +01:00
1f2e1f9e4a Rename WooCommerceOrders job to WooCommercePastOrders
[MAILPOET-2465]
2019-10-10 12:09:35 +01:00
e0244c771a Rename WooCommerce orders job to restart it even when completed
[MAILPOET-2465]
2019-10-10 12:09:35 +01:00
21158abe49 Rename $queue variable to $sending_task to make code more undestandable
[MAILPOET-2458]
2019-10-10 12:04:07 +01:00
260b9baeae Clean all previous stats records per-order before inserting new ones
[MAILPOET-2446]
2019-10-09 14:29:02 +01:00
4e15aad794 Rename meta record for last ID to restart WooCommerce purchase cron
[MAILPOET-2446]
2019-10-09 14:29:02 +01:00
wxa
c7b0f50c4c Store the in_progress flag for all workers [MAILPOET-2443] 2019-10-08 15:03:48 +01:00
wxa
f98ed72d83 Store the 'in_progress' flag for workers in a separate column [MAILPOET-2443] 2019-10-08 15:03:48 +01:00
5214e93787 Add sniff for use empty line spacing, fix found occurences
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
ade1cc4d8e Autofix alphabetically sorted use statements
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
4fbf8ed7be Replace unsubscribe link short code strings by constant
[MAILPOET-2245]
2019-10-01 14:07:39 +01:00
44c6e5db91 Ensure that unsubscribe link is always saved before sending
[MAILPOET-2245]
2019-10-01 14:07:39 +01:00
wxa
26041d61a7 Fix rescheduling of outdated tasks [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
12c526e120 Merge SingleInstanceSimpleWorker into SimpleWorker [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
0805dc365f Make startProgress() and stopProgress() methods private [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
2a48d0846d Move exception handling from concrete workers into processTask() [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
2a0bf3f3c8 Extract rescheduling out of the isInProgress() check [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
f598137f3b Ensure that getMeta() returns an array in the scheduled task model [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
ce645306a5 Use single instance protection for inactive subscribers sync [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
9b1f7f2d8c Refactor WooCommerce sync worker to use common single instance protection [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
b5106d9d42 Add a single-instance simple worker [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
7dba4d900c Rename Subscription\Url to Subscription\SubscriptionUrlFactory
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
d90d5c6385 Refactor getUnsubscribeUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
692ff1ed22 Use getToken()
[MAILPOET-2340]
2019-09-24 14:40:22 +01:00
f1ee32399f Use array_column from Util
[MAILPOET-2333]
2019-09-22 10:58:17 +02:00
777cf0bdd7 Add meta when sending newsletters
[MAILPOET-2333]
2019-09-22 10:58:17 +02:00
d40747e0ac Add meta when sending stats notifications
[MAILPOET-2333]
2019-09-22 10:58:17 +02:00
11b2516d99 Make sure only subscribed users recieve welcome emails
[MAILPOET-2331]
2019-09-19 16:18:26 +02:00
ac09343910 Don't mark obsolete tokens as deprecated
[MAILPOET-2364]
2019-09-17 17:47:57 +02:00
2b02d22232 Modify cron to generate short link_tokens
[MAILPOET-2364]
2019-09-17 17:47:57 +02:00
d00e260550 Fix hardcoded wp_post table in WooCommerce orders processing
[MAILPOET-2361]
2019-09-16 13:00:40 +02:00
ec3b5ca1e3 Optimize the SQL query
[MAILPOET-2313]
2019-09-12 17:32:05 +02:00
69f011f63c Add missing use statements
[MAILPOET-2313]
2019-09-12 17:32:05 +02:00
459dc8bff8 Schedule the task only when needed
[MAILPOET-2313]
2019-09-12 17:32:05 +02:00
36322978ae Add Cron task to generate link_tokens for existing subscribers 2019-09-12 17:32:05 +02:00
3ea9c99090 Use link_token when tracking and rendering links 2019-09-12 17:32:05 +02:00
d6a29e1b91 Schedule it immediately if needed
[MAILPOET-2340]
2019-09-12 14:59:02 +02:00
01a0fe96c4 Remove no longer necessary checks
[MAILPOET-1948]
2019-09-12 13:59:32 +02:00
493e16606c Move constans to their classes
[MAILPOET-2348]
2019-09-11 19:16:21 +01:00
3f3983113a Remove unused argument
[MAILPOET-2219]
2019-08-28 12:48:22 -04:00
11aebe2e05 Fix notice
[MAILPOET-2267]
2019-08-21 14:34:14 -04:00
83d9c85737 Use the rendered subject in stats email 2019-08-09 19:27:27 +01:00
wxa
c4f2be2edf Clear the in_progress flag if WC sync task fails [MAILPOET-2202] 2019-08-01 13:09:18 -04:00
wxa
8b867a7b4f Reschedule failing cron tasks progressively [MAILPOET-2181] 2019-08-01 13:09:18 -04:00
1600e4c5ee Add unsubscribe token to existing subscribers and newsletters 2019-07-31 16:50:44 -04:00
9ddc737b79 Fix stats notification scheduling after sending a post notification
[MAILPOET-2231]
2019-07-31 15:22:14 -04:00