You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ;)
The text was updated successfully, but these errors were encountered:
You are right, the first part has been solved with upcoming v1.1.
Assuming you’re not displaying thousands of ticks, the actual DB load for a single query is rather low. However a good point.
I will try to utilize WP caching mechanisms to reduce DB load in such scenarios.
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 ;)
With the next version 1.2 the AJAX calls will target the REST API instead of the AJAX endpoint and will use the modification timestamp of the latest tick received. (see #15)
This will have two posititive impacts here:
all visitors will use the same "lastPoll" value of no new tick has been published in between
doing so the API requests are equal and can be served from cache
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
'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
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 ;)
The text was updated successfully, but these errors were encountered: