Caching in Nitro 💾

Поділитися
Вставка
  • Опубліковано 7 вер 2024

КОМЕНТАРІ • 46

  • @mauriceputz
    @mauriceputz Місяць тому +2

    Are you reading my mind? Always when I have a project where I need a specific answer video too, I see you uploaded a video to it a few hours or days ago, which nails the topic directly and helps a lot! Thank you mate.

    • @TheAlexLichter
      @TheAlexLichter  4 дні тому

      What a timing! Really glad that my content was there right when you needed it 😁

  • @sludgebucket3042
    @sludgebucket3042 19 днів тому

    I had no idea this was all doable within Nitro, going to set this up asap

  • @gro967
    @gro967 Місяць тому

    Used Nitro caching the first time two years ago, was about time someone exposes that to the world :)

  • @da-ker
    @da-ker Місяць тому +1

    Very nice introduction to caching options. Thank you!

  • @jdaws47
    @jdaws47 Місяць тому +1

    Thank you for your videos. They have been a tremendous help on a project I’m working on.

  • @gabrielserejo8379
    @gabrielserejo8379 Місяць тому +1

    Thanks for the video Alex!

  • @DanielLuchin
    @DanielLuchin Місяць тому +1

    This is super useful! Thanks

  • @heyjitendra
    @heyjitendra Місяць тому

    Wow this is amazing. I have used hono but unjs seems good too..

  • @web-code-maker
    @web-code-maker Місяць тому

    Всё очень понятно и классно рассказал. Спасибо друг

  • @mustafa60x
    @mustafa60x Місяць тому

    thanks

  • @solvedfyi
    @solvedfyi Місяць тому

    I suppose if you're gonna keep bringing up stuff super relevant to me I'm just going to have to subscribe

    • @TheAlexLichter
      @TheAlexLichter  11 днів тому

      I wouldn't mind that 😛
      Thanks for the sub!

  • @nanaassumadu4997
    @nanaassumadu4997 Місяць тому

    This is awesome

  • @ralacerda12
    @ralacerda12 Місяць тому

    Amazing video! Nitro keeps blowing my mind on how simple it's to get it running and doing complex stuff.
    But a question not totally related to the video, but if you build a project like this for nitro (stand alone) and you want to use with an spa (without nuxt or even without vue), how can I get the types from the nitro project? Do I need to setup a monorepo?

    • @TheAlexLichter
      @TheAlexLichter  11 днів тому

      Thank you 🙏🏻
      Yeah, that's a bit more tricky. I hope I can make a video on that soon

  • @LajonDJ
    @LajonDJ 6 днів тому

    @TheAlexLichter Is there a way to get all caches in a Nitro/Nuxt app? My use case is that I would like to build an admin interface, where you can invalidate caches :)

    • @TheAlexLichter
      @TheAlexLichter  6 днів тому

      You certainly can. NuxtHub is also doing that 👌🏻

  • @assoftTR
    @assoftTR Місяць тому +1

    Next goal rate limiter?

  • @paradox3210
    @paradox3210 9 днів тому

    Is it possible to use a catch-all route (server/api/[...].ts) and a specific route rule in the config at the same time? I want to cache one particular route (/api/settings) 🤔

    • @TheAlexLichter
      @TheAlexLichter  9 днів тому +1

      Then you'd need a dedicated /api/settings.ts file (which can do the same as the catch-all) - yes.

  • @LoFiLanes
    @LoFiLanes Місяць тому +1

    How to do cache with handler with auth ? if i use const session = await requireUserSession(event) from (Nuxt Auth Utils) inside, it doesn't work ( i use Nuxthub)

    • @atinux
      @atinux Місяць тому +1

      The cache is by-passed if we detect an authenticated request to avoid cross request state pollution.

    • @LoFiLanes
      @LoFiLanes Місяць тому

      @@atinux Thank you, so i can't cache ? ( with other way) , i shoud never cache auth request ?

    • @atinux
      @atinux Місяць тому +1

      No you should not cache Auth request. But you can cache functions inside using defineCachedFunction

    • @LoFiLanes
      @LoFiLanes Місяць тому

      @@atinux Thank you

    • @TheAlexLichter
      @TheAlexLichter  11 днів тому

      Nothing to add here 🔥

  • @HEX_CAT
    @HEX_CAT Місяць тому

    ❤❤❤🎉🎉🎉

  • @impactsongs
    @impactsongs Місяць тому

    Greate Alexander! Thank you for the good tutorials.
    I have a question because i use cache in Nitro alot.
    How can i access a url parameter or slug inside a Info.server.vue component example. Because if i use useRoute() it is empty.
    I ask that because when i want to access something function from server i use Nitro and with this i can make a call directly from my server component.

    • @TheAlexLichter
      @TheAlexLichter  11 днів тому

      (Answered in the more recent comment, sorry that I missed this one!)

  • @undertale-15075O
    @undertale-15075O Місяць тому +1

    Больная тема. Когда внезапно узнали что swr не работает в Netlify

    • @TheAlexLichter
      @TheAlexLichter  Місяць тому +1

      That sounds like a bug! Is there an open nitro issue?

    • @paranoidPhantom
      @paranoidPhantom Місяць тому

      На vercel вроде порядок

    • @undertale-15075O
      @undertale-15075O Місяць тому

      @@paranoidPhantom ну так это одно, а это другое

    • @DanielLuchin
      @DanielLuchin Місяць тому

      @@paranoidPhantom на vercel не работает ISR.. Если добавить параметры в Get запрос - они игнорируются :(

  • @виртуоз_ру
    @виртуоз_ру Місяць тому

    Хорош 👍