Open
Description
First 1000 thanks for this ticker its simple and great :)
In the current version on the wp-plugin repository the ticker is broken, because the date query is wrong
'date_query' => array(
'after' => date( 'c', $last_poll ),
)
'c', $last_poll results in 2020-04-26T21:05:24+00:00 but wordpress is expecting something like 2020-04-26 20:56:22.
Solution is
'date_query' => array(
'after' => date( 'Y-m-d H:i:s', $last_poll ),
),
Then i looked in your code here and saw, that you solved it already.
So my main concern is now, if you have 20.000 simultaneous visitors who are making a ajax every 20 seconds and every call results in a db poll leads to a problem ;)
Activity