HoudiniGraphql/houdini

Support no-cache fetch policy

TheophileMot opened this issue · 1 comments

Describe the feature

I would like to be able to run a query without caching the results, as in

query MyQuery($arg: MyInput!) @cache(policy: NoCache) {
  ...
}

I've been running into major performance problems with my app, and the browser profiler shows that it's the caching that's responsible. The queries in question involve large amounts of data that's fetched often (every two seconds or so), and it doesn't need to be cached.

As I understand it, there are four available policies (CacheOrNetwork | CacheAndNetwork | NetworkOnly | CacheOnly), but all four of these use the cache.

Criticality

waiting for it to switch all my project to Houdini

I'm definitely interested in this! This is already being tracked by #356 so i'm going to close this. That being said, if you want to give it a shot I'd gladly lend any guidance you need - it shouldn't be too hard!