Maxi

Maxi

@maxizipitria.com

Building https://www.globehopper.app

35 followers171 following13 posts

The "use cache" directive does not work in Vercel Am I reading this correctly? This is absolutely insane. I've noticed the issue months ago and always thought I was doing something wrong.

Maxi@maxizipitria.com

Hey @leerob.com, is the "use cache" directive working as expected in Vercel? I’ve been running into an issue where a function I want to cache for 7 days keeps getting revalidated. It’s inconsistent and hard to debug. It doesn’t always happen, but occurs multiple times a day. Any insights?

Another weekend, another project: photoprompt.app Edit images using natural language, no designs skills required. This was made in a weekend, and a lot of things are not even implemented yet. This is the worst this product could ever be, just imagine the possibilities 🤯

Coming soon to Globehopper: ✨ Trip Suggestions Get suggestions for places to go on vacation that fit the rest of your trip It’s incredible to think that just five years ago, seeing this feature in Google Maps was mind blowing. Now implementing it is easier than ever.

Hey @leerob.com, is the "use cache" directive working as expected in Vercel? I’ve been running into an issue where a function I want to cache for 7 days keeps getting revalidated. It’s inconsistent and hard to debug. It doesn’t always happen, but occurs multiple times a day. Any insights?

The attached GIF shows it trying to read from the cache, but it’s a miss (even though the entry is only 6 minutes old). It then updates the cache to revalidate after 7 days. 🤔 Am I misinterpreting the logs? If not, why does it store the value in the cache again right after?

Here's how i'm using the directive: ``` async function getAllCards() { "use cache" cacheLife("weeks") ``` The function doesn’t take any arguments (which I believe it should make it easier to cache?)

You are up to date.