• websebdev Profile Picture

    Sebastien Auriault @websebdev

    4 years ago

    💎 Rails tip💎 Do you have slow queries in your controllers that even pagination doesn't solve? You can easily cache them (if you have a cache store set) using `fresh_when`. #ruby #rails #rubyonrails

    websebdev tweet picture

    11 30 139 0 15
    Download Image
  • websebdev Profile Picture

    Sebastien Auriault @websebdev

    4 years ago

    Someone mentioned to me that it's actually using the browser cache. This means you don't even need to have a cache store set!

    3 0 9 0 0
  • keygen_sh Profile Picture

    Keygen @keygen_sh

    4 years ago

    @websebdev Indexes solve slow queries 🙂

    0 0 1 0 0
  • geetfun Profile Picture

    geetfun @geetfun

    4 years ago

    @websebdev 👍 This is very useful and has some gotchas if your app has super dynamic content (ie. not a CMS style app but a project management app with RT updates).

    0 0 1 0 0
  • pinzonjulian Profile Picture

    Julián Pinzón Eslava @pinzonjulian

    4 years ago

    @websebdev fresh_when is one of the many helpers to work with ETags. This is a great way to cache but it should be done carefully because it's a cache you don't directly control and it can introduce inconsistencies you can't easily fix. You can't run Rails.cache.clear to fix it for example

    0 0 4 0 0
  • MikeRogers0 Profile Picture

    Mike Rogers 💎 @MikeRogers0

    4 years ago

    @websebdev api.rubyonrails.org/classes/Action… I've not seen this before & this is awesome! Thank you @websebdev !

    1 0 3 0 0
  • stevepolitodsgn Profile Picture

    Steve Polito @stevepolitodsgn

    4 years ago

    @websebdev The best part about this technique is how simple it is to implement. Rails has a solution for everything.

    0 0 2 0 0
  • vitobotta Profile Picture

    Vito Botta @vitobotta

    4 years ago

    @websebdev Cache store? That’s just http caching 🙂

    0 0 2 0 0
  • byellokore Profile Picture

    Gabriel F Dos Santos @byellokore

    4 years ago

    @websebdev Thank you so much! Every week I learn with your tweets!

    1 0 1 0 0
  • ianbradbury Profile Picture

    Ian Bradbury @ianbradbury

    4 years ago

    @websebdev Awesome tip.

    0 0 1 0 0
  • TheDevNxtDoor Profile Picture

    Ess Jay @TheDevNxtDoor

    4 years ago

    @websebdev Nice tip. How does it invalidates the cache, even the data has gone stale?

    1 0 0 0 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 www.instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro x profile viewer