Easy PHP Caching in 15 minutes to improve performance - Cache MySQL query results
Вставка
- Опубліковано 22 сер 2024
- Here's a very simple and fast way to get yourself started with PHP Caching.
In this video, I am showing you a real-world use case where Caching MySQL query results will help improve your PHP script performance.
You should not use Caching alone to try and "fix" slow MySQL queries, you should always make sure that your queries are as fast as possible first of all. The addition of caching will make everything even faster if everything else is done right.
The test in this video was done on a $5 basic VPS to show the potential results of before and after.
📝 Article about this video
grohsfabian.co...
📚Personal blog
grohsfabian.com
🔥 My affiliate links if you want to support me
DigitalOcean Hosting - l.grohsfabian.... (Get $100 in usable credit)
Namecheap Domains - l.grohsfabian....
#php #programming #phpcaching
Very Very Greate Video
Felicitari! :)
Great video.
Interesting for sure. You add a PHP link with a variable, but what if you do different queries all from the same URL, like on a map with a search panel beside it ?
Those would be pointless to store in memcache if the variations are huge.. and it would eat up RAM space (this sits on RAM I believe). You pick & choose what to cache. Page content etc. that doesn't change freqently would be great. You can also specify the expiry duration depending on each cache, so write a nice function that determines the type, key and duration well, and boom. Good to go.
Gracias hombre,,
Thank you
Super folositor, se poate face treaba asta si fara composer ? Ma refer strict folosind php vanilla
Difficult to decide which data should be cached
ever heard of OOP and classes? :D