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

КОМЕНТАРІ • 10

  • @PawanKayat
    @PawanKayat 3 місяці тому

    Very Very Greate Video

  • @yonut
    @yonut Рік тому

    Felicitari! :)

  • @winz1527
    @winz1527 Рік тому

    Great video.

  • @Ditzj
    @Ditzj Рік тому

    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 ?

    • @brixwork
      @brixwork 4 місяці тому

      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.

  • @dansonmwangi5660
    @dansonmwangi5660 Рік тому

    Gracias hombre,,

  • @davidchriss9618
    @davidchriss9618 10 місяців тому

    Thank you

  • @AxellDoesStuff
    @AxellDoesStuff 8 місяців тому

    Super folositor, se poate face treaba asta si fara composer ? Ma refer strict folosind php vanilla

  • @Sdirimohamedsalah
    @Sdirimohamedsalah 10 місяців тому

    Difficult to decide which data should be cached

  • @jesuschrist5294
    @jesuschrist5294 6 місяців тому

    ever heard of OOP and classes? :D