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
2
votes
3 answers

Smarty cached files invalidation

I'd like to go slightly deeper into Smarty caching, so I have some simple questions... To manipulate cache invalidation I want to know what directory Smarty is storing it's cache in. For example, all cached pages related to user_id=123 I want to…
Kirzilla
  • 16,368
  • 26
  • 84
  • 129
2
votes
1 answer

Invalidate Varnish cache on multiple instances

We are running our Magento store on AWS and we have autoscaling setup behind an ELB. At any time, we have at least 2 web servers running. Each web-server instance has it's own Varnish Cache server in front of it handling incoming requests. Now, the…
Anil Kumar
  • 459
  • 6
  • 16
2
votes
2 answers

Basic Memcached Implementation in PHP

I understand the concept on Memcache but i have a doubt. Lets say: I have a table 'users' with the three columns: userid username and password. Lets say the query is $query="select * from users". For the first time, the query gets executed and…
Kanishk Dudeja
  • 1,201
  • 3
  • 17
  • 33
2
votes
1 answer

Django cache invalidation on transaction commit?

When developing your project in Django with READ-COMITTED level, I think cache.delete can lead to race condition and django's signals won't help much. T1 T2 cache.delete cache.get (not found) read…
hurturk
  • 5,214
  • 24
  • 41
1
vote
0 answers

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 ra,28(sp) sw s0,24(sp) …
1
vote
1 answer

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 encodeURIComponent against strings that contain it do not…
danludwig
  • 46,965
  • 25
  • 159
  • 237
1
vote
1 answer

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 invalidation for client side cache in 2 modes: Default mode: Redis…
Alok Kumar Singh
  • 2,331
  • 3
  • 18
  • 37
1
vote
0 answers

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-cache-coherency-within-a-cluster It also has software…
1
vote
2 answers

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 impossible for CPU1 to copy the variable X from CPU0's L1d…
1
vote
1 answer

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. According…
Andrius
  • 41
  • 2
1
vote
0 answers

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:aws:s3:::*" }, { "Effect": "Allow", "Action": [ "cloudfront:CreateInvalidation", …
1
vote
0 answers

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 second time I don't get the true loading speed as…
1
vote
1 answer

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 uses all three. @CacheInvalidate(cacheName =…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
1
vote
2 answers

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? I can think of only possible scenario - If for…
Praveen Nvs
  • 331
  • 3
  • 14
1
vote
1 answer

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 homepage, and now you swap that with something new,…
Digital Ninja
  • 3,415
  • 5
  • 26
  • 51