Commit Graph

6 Commits

Author SHA1 Message Date
David Remer
33e5e15e98 Remove MailPoet Trigger
[MAILPOET-4271]
2022-05-09 13:06:28 +02:00
Rostislav Wolny
fe2397a65e Optimize WordPress cron trigger SQL
Majority of scheduled tasks DB records are completed tasks.
We check completed tasks only for Migration worker task type.
Excluding other workers' completed tasks significantly speeds up the query
on sites with longer history. E.g. on mailpoet.com the query sped up from 0.6s to 0.003s.

[MAILPOET-4314]
2022-05-09 10:19:20 +02:00
Rodrigo Primo
4113c35dc7 Replace Paris code with Doctrine in \MailPoet\Cron\Triggers\WordPress
[MAILPOET-4140]
2022-05-05 19:14:21 +02:00
David Remer
8879e505e2 Exit early when the runInterval is -1
By default checkRunInterval will always return true because there is no way
the time which has passed since the last run is smaller than -1. To prevent
unnecessary code execution and an not needed SQL insert, we can return true
in checkRunInterval() early.

[MAILPOET-4267]
2022-05-02 13:09:12 +02:00
Brezo Cordero
ba1da229a8 Add SimpleWorker to calculate Subscriber email_counts
[MAILPOET-4177]
2022-04-07 10:17:38 +02:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00