Skip to content

Commit 9110416

Browse files
fix: cron names
1 parent 49e9bc3 commit 9110416

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

includes/admin/feedzy-rss-feeds-task-manager.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ class Feedzy_Rss_Feeds_Task_Manager {
1919
*/
2020
public function register_actions() {
2121
add_action(
22-
'feedzy_send_error_report',
22+
'task_feedzy_send_error_report',
2323
array( $this, 'send_error_report' )
2424
);
2525

2626
add_action(
27-
'feedzy_cleanup_logs',
27+
'task_feedzy_cleanup_logs',
2828
function () {
2929
Feedzy_Rss_Feeds_Log::get_instance()->should_clean_logs();
3030
}
@@ -34,7 +34,7 @@ function () {
3434
'init',
3535
function () {
3636
$this->schedule_weekly_tasks();
37-
$this->schedule_daily_tasks();
37+
$this->schedule_hourly_tasks();
3838
}
3939
);
4040
}
@@ -64,14 +64,14 @@ public function schedule_weekly_tasks() {
6464
* @since 5.1.0
6565
* @return void
6666
*/
67-
public function schedule_daily_tasks() {
67+
public function schedule_hourly_tasks() {
6868
if (
6969
false !== Feedzy_Rss_Feeds_Util_Scheduler::is_scheduled( 'task_feedzy_cleanup_logs' )
7070
) {
7171
return;
7272
}
7373

74-
Feedzy_Rss_Feeds_Util_Scheduler::schedule_event( time(), 'twicedaily', 'task_feedzy_cleanup_logs' );
74+
Feedzy_Rss_Feeds_Util_Scheduler::schedule_event( time(), 'hourly', 'task_feedzy_cleanup_logs' );
7575
}
7676

7777
/**

0 commit comments

Comments
 (0)