eriktisme said:
https://www.youtube.com/playlist?list=PLfdtiltiRHWEqEI7eRX77cU3R6U5rqdsN
I understand how to do the JavaScript, but I don't want to hit the server I'm requesting from every time a user polls with JavaScript, I want them to hit a file or route that outputs a JSON response of the user count. The file will be updated every 5 seconds or so by a script that hits the server, not the user hitting the server.
cache the result at the first hit for 5 seconds
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community