Skip to content

scalability of the plugin #5

Open
@nanu-c

Description

@nanu-c

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions