8ea06f3f31
Use POST for cron requests
...
[MAILPOET-1485]
2018-08-16 08:27:05 +02:00
a3b79a6907
Fix overriding cron token
2018-07-31 17:48:26 +02:00
3184b43b3b
Add status flag for cron deactivation
...
Cron daemon, which was triggered by WordPress method, was deactivated
by deletion from DB and it caused the lost of all log data about it.
This commit changes the implementation so that the daemon is deactivated by changing status flag.
[MAILPOET-1457]
2018-07-25 13:23:21 +02:00
3c7cd193b6
Detect not accessible cron daemon [MAILPOET-801]
...
This adds a function to a CronHelper which detect accessibility problem based on timestamps
which are stored during cron execution. The main idea is that the cron daemon should update run_started_at
within the REQUEST_TIMEOUT after it was accessed (run_accessed_at).
2018-07-11 09:27:19 +02:00
083372a391
Store timestamps and last error during cron process [MAILPOET-801]
2018-07-11 09:27:14 +02:00
e0052bbb93
Sanitize correct cron ping response [MAILPOET-1291]
2018-02-16 18:06:41 +00:00
819d4dc17a
Abstracts WP functions
2018-01-15 19:52:51 -05:00
0e2a67c203
Validates ping response when displaying cron URL status
2017-12-18 20:28:09 -05:00
02966c3b93
Sets cron daemon timeout to 5s across the plugin
...
Adds hook to override cron request arguments
2017-09-20 14:59:48 +01:00
84dc48daec
Allow passing cron timeouts
...
[MAILPOET-1114]
2017-09-20 14:59:48 +01:00
12225004f4
Apply hook on cron timeout
...
[MAILPOET-1114]
2017-09-20 14:59:48 +01:00
320dfa2ec5
Extracts duplicate code into reusable methods
...
Updates unit test
2017-09-20 14:59:48 +01:00
b5f3016085
Removes URL from user agent
...
(https://mailpoet.slack.com/archives/C02MTKAJL/p1505488541000029?thread_ts=1505488163.000795&cid=C02MTKAJL )
2017-09-20 14:59:48 +01:00
cd53e369d0
Allows accessing full URL from within custom cron hook
2017-09-20 14:59:48 +01:00
6fc11af774
Returns error message instead of empty body
2017-09-20 14:59:48 +01:00
52470360a1
Returns ping response body instead of boolean
2017-09-10 18:49:15 -04:00
6c62459ed4
Adds filter to override default cron request URL
2017-09-10 18:36:22 -04:00
fcf272b44a
Fix lint error
2017-06-07 11:49:07 +01:00
5349f3a59a
Use ssl while checking url
...
My internet provider tried to be helpfull and offeres content on
invalid urls. That is only behaviour for http:// scheme and not
for https:// scheme so I need to enforce ssl so that invalid url
fails even in my house.
2017-06-07 11:30:31 +01:00
a6b00e1ba7
- Adds new "ping" cron daemon router endpoint
...
- Removes the requirement to have data payload for router requests
2017-01-08 22:25:39 -05:00
bf36deccb2
- Enables blocking requests for Cron and fixes an issue on hosts that
...
don't support non-blocking requests
2016-11-29 15:03:51 -05:00
2955b6d5a0
- Clarifies const values
2016-11-28 09:50:32 -05:00
7fbf84db1f
converted text domain to string instead of constant
2016-09-30 09:58:26 +02:00
42202f676a
updated Env::plugin_name to constant for text domain
2016-09-27 14:54:23 +02:00
ba6198f956
added textdomain to __() calls
2016-09-27 14:53:44 +02:00
b37e85eeb5
- Removes unused method
2016-09-18 23:15:41 -04:00
3508ac36b4
- Removes daemon status logic and updates tests
...
- Refactors daemon
- Adds daemon unit tests
2016-09-08 19:22:42 -04:00
d9fbbdc02d
- Updates code comments
2016-08-31 09:23:12 -04:00
f2d1787bd5
- Updates site URL detection logic
...
- Adds unit test for Cron Helper class
2016-08-30 12:37:30 -04:00
59d30cc139
- Renames router URL query parameter and router class
...
- Updates other classes to use the new name
- Updates unit tests
2016-08-25 09:57:14 -04:00
7ff036b1e9
- Removes depreciated variables
...
- Updates method names
2016-08-08 09:45:16 -04:00
1be7fda1cf
- Updates daemon request timeouts
2016-08-05 13:03:31 -04:00
3f5c36d2d4
- Fixes blocking HTTP request issue
...
- Simplifies cron supervisor
2016-08-05 13:03:31 -04:00
ec6559b8be
- Removes unused method from Settings model
...
- Renames method to delete value
2016-08-05 13:03:31 -04:00
9b9cb1455a
- Updates cron/mailer/scheduler code to work with the new sending queue
...
task scheduler and mailer log
2016-08-05 13:03:31 -04:00
a438f13bb0
- Modifies cron router/UI to display proper status message when WP task
...
scheduler is configured and cron is not running
- Updates sending queue worker and related components to stop (delete)
cron when all processing is done
2016-08-05 13:03:31 -04:00
2e88d7cce0
Added API/Endpoint abstract class
...
- (re)Added Endpoints folder to both API and Router
- fixed syntax in namespaces
- xhr.responseJSON is returned to the fail()
- fixed Router endpoints (view in browser, cron,...)
2016-08-02 17:08:43 +02:00
008fdb94c5
Moved lib/API to lib/Router
...
- renamed lib/API/API.php to lib/Router/Front.php
- updated namespaces in various file to account for namespace change
2016-08-01 17:00:32 +02:00
1cd9f3eb67
- Removes counter from cron daemon
...
- Invokes token regeneration/comparion at a later stage
2016-07-07 10:24:24 -04:00
ab33a9c352
- Updates cron API URL
...
- Removes cron daemon counter
- Generates/saves cron daemon token as soon as its executed
2016-07-06 19:48:16 -04:00
2db681d908
- Adds and centralizes API data encoding/decoding method
2016-07-06 09:22:34 -04:00
cb2faec8b2
- Refactors API
...
- Updates existing classes to use the refactored API methods
2016-07-05 20:17:25 -04:00
08e6430c7d
June 8 2016 Copy review
2016-06-08 17:02:50 +02:00
a4477a9bd6
- Updates CONST values
2016-05-02 12:27:00 -04:00
0b9812210f
- Updates CONST values
2016-05-02 11:30:37 -04:00
756dbb4641
- Updates daemon status to CONSTs
...
- Uncomments temporary commented out code
- Removes unnecessary exception handles in Public API
2016-05-02 10:32:34 -04:00
afcb0a0d7f
- Upperases all constants
2016-05-02 09:47:54 -04:00
89f2958d23
- Updates cron to use new public API query parameters
2016-04-08 18:53:57 -04:00
c4b728f4e1
- Updates Daemon to execute workers via WP's action hook
...
- Bootstraps Scheduler class
2016-03-03 15:42:10 -05:00
9b584296a5
- Updates queue worker based on code review comments
2016-02-11 10:23:41 -05:00