87 questions
0
votes
0
answers
96
views
How to Maintain Dynamic RTK Query Tag Validation and Invalidation for Multiple API Slices in Redux Toolkit?
I'm working on a project using Redux Toolkit (RTK) Query to manage multiple API endpoints, where each API slice is constructed dynamically through a function. My goal is to maintain a dynamic approach ...
1
vote
1
answer
204
views
Redis cache busting - "dynamic" keys
We're using Redis for caching in our .NET 8 APIs (Azure Redis for some, Enterprise Redis for others).
Certain API endpoints take query string parameters, and these parameters are factored into the ...
1
vote
0
answers
571
views
tRPC prevents me from using revalidatePath to invalidate cache on the client
It still invalidates the cache on the server side(so on forced refresh it is shown), but doesn't invalidate the cache on my ssr rendered pages/layouts. This causes my users to be stuck and see stale ...
0
votes
1
answer
126
views
CloudFront charges after you invalidate your distribution over 1,000 times, does the count reset each month?
If the amount of invalidations you've created exceed 1,000, CloudFront begins to charge one money for each subsequent invalidation. Does your invalidation count reset each month, or does it continue ...
0
votes
1
answer
63
views
Cache deletion and refreshing data race
I'm starting to learn about caching and have thought of the following problem, and really only see one way to solve it but I'm sure I am missing something
Lets image that I have two endpoints, one for ...
0
votes
0
answers
74
views
Is there an RXJS/Angular service pattern to efficiently re-fetch a POST (not a GET), alerting any number of consumers
In Angular+TS, using RXJS observable patterns, and wanting services to avoid explicit subscriptions or opinionated piping operators.
Say that we have a file appointments-api.service.ts, with functions ...
1
vote
0
answers
365
views
run queries only after query invalidation with react-query
Tanstacks react-query allows to use a cache with the initalData option. But it will still query the data initially. In a scenario where you want to save queries to the server, by loading all your data ...
0
votes
1
answer
590
views
Problem with concurrent flushing tagged Redis cache in Laravel
I have an application, in Laravel 10, which allows voting for candidates and shows a list of these candidates sorted by votes. That list of candidates is fetched from database, calculated a bit, and ...
3
votes
3
answers
2k
views
GCP Cloud CDN cache invalidation taking too long
I have a simple load balancer setup in GCP with two routing rules,
/api/* which redirect requests to the backend service (managed by cloud Run)
/* which redirects all other requests to a static ...
1
vote
2
answers
1k
views
AWS Cloudfront. Force browser to revalidate but not CDN
I have a file named sdk.js. This file name is not versioned or hashed in any way because we don't control the sites where it is embedded so the name must remain consistent.
The browser should cache ...
2
votes
2
answers
3k
views
Check AWS Cloudfront invalidation complete time?
I would like to know at what point in time a given Cloudfront invalidation has been completed.
When browsing invalidations in AWS Console, I can only see Date created timestamp, as per attached image.
...
1
vote
0
answers
231
views
Invalid language element error in Assembly
I am trying to execute this riscv assembly code but I keep getting the error :Invalid language element
This is the code part that error happend. (last row)
main:
addi sp,sp,-32
sw ...
0
votes
1
answer
1k
views
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,
...
1
vote
1
answer
927
views
How to invalidate a cloudfront path that contains a tilde ~ character?
Trying to invalidate an AWS cloudfront path that contains a tilde ~ character results in an invalid argument error. A tilde is a valid URL character, and invoking things like encodeURI or ...
1
vote
1
answer
834
views
Cache Invalidation In Redis for Client side caching [Special Case]
Service1 -> Our Wrapper API service -> Redis
Service2 -> Our Wrapper API service -> Redis
Client side caching with Redis is very useful. Redis provides server push-based cache ...
1
vote
0
answers
259
views
Why do we need both hardware support and software instructions for invalidating cache?
Looking at Arm as an example, it has hardware support for automatic cache
invalidation as explained in this URL:
https://developer.arm.com/documentation/den0024/a/Multi-core-processors/Multi-core-...
0
votes
3
answers
10k
views
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 ...
1
vote
2
answers
941
views
Invalidation of the cache from L1 cache
Suppose that a cache line with variable X is simultaneously uploaded to L1d of CPU0 and L1d of CPU1. After changing the value of X from CPU0, when CPU1's L1d cache line is invalidated, Is it ...
1
vote
1
answer
661
views
Infinispan invalidation cache invalidates on new key
We have a two active/active node Wildfly 19 cluster configuration with infinispan (v 9.4.18) invalidation cache.
<invalidation-cache name="opencell-tenant-cache">
<transaction ...
4
votes
2
answers
3k
views
AWS Cloudfront cache invalidation paths usage
I am using s3 bucket as origin in cloudfront to cache and host my reactjs website.
After every deployment on s3 i want to invalidate the cache of my cloudfront distribution so that the user can get ...
0
votes
0
answers
147
views
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 - /search/name?parent=true&...
0
votes
1
answer
789
views
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 ...
3
votes
1
answer
386
views
Find which SQL queries from a list of predefined queries are impacted by an INSERT, UPDATE, or DELETE
Introduction
I am building a caching system where each node of the cache may call any number of SQL queries from a predefined, finite, set of SQL queries with 0-n parameters.
Based on the result of ...
0
votes
2
answers
247
views
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 ...
3
votes
1
answer
3k
views
AWS CloudFront Error An error occurred (NoSuchDistribution) when calling the CreateInvalidation operation: The specified distribution does not exist
User having the Cloud Front Policy
{
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "arn:...
3
votes
1
answer
5k
views
How to invalidate cloudfront cache for a specific folder on S3 in NodeJS?
I would like to invalidate a folder (and the subfolders) in the s3 bucket in node js.
This is the script I am using at the moment:
var clearCloudfrontCache = function() {
console.log("...
18
votes
0
answers
8k
views
Clear browser cache for CORS
I need to clear the cache for one file in Chrome.
I was setting up loading a font from my own CDN, and added the cache-control: public, max-age=31536000, immutable header. However, I did not setup ...
1
vote
0
answers
1k
views
Delete memory cache of binary data in python
I am looking to speed up the loading and processing of large binary files using code I have written. The code works however it is slow. I want to make improvements, but whenever I load the files a ...
4
votes
2
answers
158
views
Pull to refresh in Domain Driven Design app
I need to implement pull to refresh in an iOS app, and I came across this thing, in where I don't know how to approach the problem with the best practices of DDD.
The presentation layer has an event ...
1
vote
1
answer
4k
views
How to programmatically invalidate a Quarkus Cache?
I´m running into a problem where using the @CacheInvalidate annotation is not enough anymore.
One method has to erase two different caches, one of them uses two of the given arguments and the other ...
0
votes
1
answer
619
views
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....
0
votes
1
answer
644
views
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
...
2
votes
1
answer
940
views
FOSHttpCacheBundle cache invalidation with Symfony built-in reverse proxy doesn't work
I'm trying to do a hard thing: implementing cache invalidation with Symfony 4.4.13 using FOSHttpCacheBundle 2.9.0 and built-in Symfony reverse proxy.
Unfortunately, I can't use other caching solution (...
5
votes
1
answer
562
views
How can I detect/avoid updates to my cached React-based App? Or how can I detect a cache-invalidation before it happens?
I'm developing an app in React that does encryption on the client-side and sends the encrypted content back to the server for secure storage (e.g. think of online-wallets). This works well since the ...
0
votes
1
answer
956
views
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.
0
votes
0
answers
335
views
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 ...
0
votes
1
answer
144
views
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 ...
0
votes
1
answer
2k
views
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 ...
0
votes
1
answer
850
views
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 ...
2
votes
2
answers
495
views
Is file modification time reliable for cache invalidation?
I want to invalidate some locally generated cache every time file is modified.
Invalidation would happen on running manually some command-line tool (no live watch required)
My approach would be to:
...
1
vote
1
answer
4k
views
When do we perform Cache invalidation?
An excerpt from Wiki on Cache invalidation -
"Cache invalidation is a process in a computer system whereby entries in a cache are replaced or removed." But, why on earth do we need to invalidate Cache?...
1
vote
1
answer
2k
views
How to make sure previous visitors don't see the old HTML page?
I see a lot of answers about forcing cache reload recommending a solution that incorporates the HTML page itself.
But when you have a situation where your old website was written as an index.html ...
6
votes
1
answer
1k
views
Docker cache invalidation
I'm having some weird issues with my custom Dockerfile, compiling a .Net core app in alpine containers.
I've tried numerous different configurations to no avail - cache is ALWAYS invalidated when I ...
1
vote
2
answers
3k
views
Refresh permissions from in-memory cache with ASP.NET Boilerplate
When I explicitly set a permission for a user in the database by running a SQL update script, the particular permission with the latest grant is not reflecting in the system. However when I recycle ...
0
votes
1
answer
2k
views
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 ...
0
votes
1
answer
2k
views
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 @...
9
votes
1
answer
29k
views
Force browser to clear cache in Angular environment
There is a popular question on how to force-clear the cache of the browser in a VanillaJS application, with the general consensus being, setting the name of the .js-script or the scripts arguments to ...
1
vote
1
answer
2k
views
How to invalidate redis cache with mysql?
I want to use redis as cache for mysql, and the main idea is:
Query
read from redis
if not exist, read from mysql, and add to redis cache
Add
write to mysql directly
Update&Delete
write to mysql
...
1
vote
0
answers
407
views
Redux-persist: handling item deletion, initiated not from the app
Consider you have two todo list apps for the same service, using the same database - a webapp and a react native app. A user can be logged in to their account on both and create/update/delete their ...
0
votes
0
answers
617
views
Inconsistency in memcached due to MySQL master slave syncing delay
We have recently switched to MySQL master/slave architecture. We do all writes and critical reads to master and all read to the slave machines. The master/slave architecture is designed as follows.
...