Support the ongoing development of Laravel.io →
Requests Input Cache
Last updated 1 year ago.
0

eriktisme said:

https://www.youtube.com/playlist?list=PLfdtiltiRHWEqEI7eRX77cU...

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.

Last updated 1 year ago.
0

cache the result at the first hit for 5 seconds

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Nentify nentify Joined 14 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.