Questions tagged [cache-invalidation]

Use cache-invalidation for questions related to purging content from a cache based on a state change in the cached object or a canonical object that it shadows

References

85 questions
0
votes
1 answer

Update cache of periodical react-query with refetchInterval from other place

For a counter I am polling the backend periodically with react-query using the refetchInterval option: const { items } = useQuery( ["queryKey"], requestFn, { refetchInterval: 5000, } ); ... {items.length} Alas, when I…
cachius
  • 1,743
  • 1
  • 8
  • 21
0
votes
0 answers

React S3+Cloudfront Cache Invalidation issues

For the project, we tried to deploy the front-end React static files by using AWS S3 + cloudfront. It worked at the first time, but there was an issue that even though we updated with new build, some of the contents were not updating. For the…
0
votes
3 answers

React Query: InvalidateQuery not working to update users list

I have a simple app that has a form and list. Currently, I am using query client.InvalidateQueries to update the users' list after submitting the form. As the documentation says, using InvalidateQuery will trigger refetching, but somehow I had not…
Wilmer Demata
  • 85
  • 3
  • 16
0
votes
0 answers

How to invalidate CDN URL which contains '{' in query string

Below is request url which contains query string param, that I have successfully cached using CDN. But I am unable to purge the request url or invalidate it from cache. url -…
0
votes
1 answer

AWS cloudfront serves outdated content in Google Chrome?

I have a react app installed in AWS s3. And I am serving the content using AWS CloudFront. I have made some changes in the app and did invalidation in the CloudFront. It is serving updated content in all browsers excpet Google Chrome. Google Chrome…
0
votes
2 answers

Is there an open source component that will subscribe to various database activity feeds and invalidate out of process caches like redis?

We are looking to implement a redis based cache for read heavy data for fronting our database as a read through cache. I would like to implement a better invalidation mechanism than just TTL or LRU based eviction to prevent stale reads as much as…
0
votes
1 answer

Hibernate with infinispan invalidation cache in a cluster

I am using Hibernate 5.4.22 with Infinispan 11.0.4 in a cluster environment. Hibernate second level cache is configured to use the JCache provider: hbProps.setProperty("hibernate.cache.use_minimal_puts", "false"); …
0
votes
1 answer

Redis: How to distinguish between client tracking invalidation of keys across multiple databases

Is there anyway to distinguish which database an invalidation applies to? example: Tracking socket: CLIENT ID // 77 PSUBSCRIBE __redis__:* Main socket: CLIENT TRACKING on REDIRECT 77 OPTIN SELECT 1 SET MYKEY VALUE1 CLIENT CACHING YES GET MYKEY…
MerlinTheMagic
  • 575
  • 5
  • 16
0
votes
1 answer

IntelliJ invalidate cache except local history

I would like to invalidate IntelliJ's cache without deleting files local history. It exists something to do this? I can't find anything online.
Lore
  • 1,286
  • 1
  • 22
  • 57
0
votes
0 answers

How to make multiple parallel PHP requests wait for cache update?

I have a standard scenario where you have multiple parallel requests trying to access the same key in Redis based cache. When this key is expired the requesting process notifies some external worker that it needs to be recomputed (the worker might…
evodevo
  • 479
  • 1
  • 7
  • 14
0
votes
1 answer

Modifying S3 Object will reflect on cloudfront if everything is already setup

Lets assume I have setup s3 bucket, and Cloudfront distrib. pointing to it. There is a CSS File and I am able to do get request on the CSS via Cloudfront. Now If make updates to CSS and upload to s3 bucket, will it work without a Cloudfront Cache…
indianwebdevil
  • 4,879
  • 7
  • 37
  • 51
0
votes
1 answer

Entity Framework DbContext detect changes from outside

I'm sure this is a duplicate but I can't find the question after scouring the internet. So if this is a duplicate, please just point me to the right one. Question: How can I get entity framework to pickup changes in an entity in the database that…
Ian Kirkpatrick
  • 1,861
  • 14
  • 33
0
votes
1 answer

How to clear the Cache of multiple distributions including listing them?

First I want to say Hello to all, second I am very scared since I just got a new job and one of my tasks is something I have never done before in my life. In this case the task I am assigned to is to find a way to delete the cache from the S3…
0
votes
1 answer

Graceful invalidation on Redis

I'm trying to find a product like Varnish that can give me the possibility to handle grafecul invalidation on cache, which basically is the ability to guarantee cache time to the client because when a key value is invalid or expired, isn not the…
user1830223
0
votes
1 answer

Refresh expiration time of entry in Infinispan on get

I've been searching in the docs of infinispan but couldn't find out an easy way to refresh the expiration time of an entry after a get automatically. Today I'm registering a Listener and, inside the @CacheEntryVisited event, I remove and put it…
Allan Vital
  • 376
  • 4
  • 18