It's great to see the #PHP ecosystem grow and prosper and I believe proper tool support and performance insights will only help when it comes to choosing the right tool for your job.
It's been a bit of a struggle getting everything to work for me, but thanks to our C specialists all the test scenarios I wrote along the way are now passing, including #Laravel#Octane
Salut la communauté. Une petite idée de comment on pourrait récupérer localement le contenu d'un fichier toutes les 10 secondes sur un serveur pour l'afficher sur un site qui tourne sur #Wordpress sur ce même serveur. C'est en gros le nom d'un artiste et d'une chanson diffusée en live sur une radio, et on veut l'afficher sur la page web de la radio.
On peut fait ça en quoi ? En #php ? Avec un plugin ? Et s'il y a 1000 personnes qui accèdent au site en même temps, comment on fait pour éviter de faire 1000 fois la même requête ?
@Crell Thank you. I'll try a bit of PHP to retrieve the content of the file an put it into a json, and a bit of AJAX to regularly poll that json and put it into a div. Would that make sense ? I'm not familiar with all of this, so REACT and so on seems too complicated for me for that purpose :)
@Yrrussaj That should work, yes. Make sure your caching is set up properly to avoid hammering your server to death.
If you don't need auth, you could also have PHP just generate a JSON file on disk on a 10 second cron (or whatever schedule), and then serve that file statically. Bypass PHP entirely. Again, need to configure the cache in your web server very carefully for that one file.
📝 Group and Sort Data in Latte Templates Like a Pro
In the latest update of Latte, we are introducing several significant enhancements that will simplify and make more efficient the work with data in your templates.
Why does #Symfony define what appears to be a “real” value for APP_SECRET in the .env file that’s committed to your repository, and then, right above it, there’s a comment that says (in all caps):
“DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.”
Where’s the documentation that explains what APP_SECRET is used for? Why doesn't it put this value in .env.local (ignored by .gitignore)?