Low Level Cache for Top Articles | Ruby on Rails 7

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น • 5

  • @Deanin
    @Deanin  ปีที่แล้ว +2

    Cache me outside. 😌

  • @m.purushothamreddy4901
    @m.purushothamreddy4901 ปีที่แล้ว

    Thanks man,nice explanation on some of the important topics,looking forward to see more such videos

  • @azizdevfull
    @azizdevfull ปีที่แล้ว

    Useful : )

  • @freibuis
    @freibuis ปีที่แล้ว +1

    it is good pracice to name your cache keys with a model name ( thing..;. or namespace... etc...)
    what commonly is used "/pages/articles/top/3"
    using the highest to lowest items.
    this makes it easy to find if you where to cache article 1 like this "/pages/article/1"
    then if you are using redis you code delete all matched articles by cache.delete_matched("/pages/articles/*")

    • @myanch200
      @myanch200 ปีที่แล้ว

      where does rails cache by default, I have an small redis heroku add on (the free one) will that be enough for couple of fragment and collection caching and maybe couple of low level caching or do I need a second instance of sorts