Chrome caching like a mad browser

Chrome should certainly treat requests with varying query strings as different requests; a cached result for style.css?v=123 should never be used for style.css?v=124. If you’re seeing different behavior, please file a bug at http://new.crbug.com/ and post the bug ID here. That said, I’d first check to see whether the page was cached longer than you … Read more

No expires header sent, content cached, how long until browser makes conditional GET request?

From the the HTTP caching spec (section 13.4): Unless specifically constrained by a cache-control (section 14.9) directive, a caching system MAY always store a successful response (see section 13.8) as a cache entry, MAY return it without validation if it is fresh, and MAY return it after successful validation. This means that a user agent … Read more

Cache invalidation strategy

Invalidate the cache during the Update stage is a viable approach, and was extremely used in the past. You have two options here when the UPDATE happens: You may try to set the new value during update operation, or Just delete the old one and update during a read operation. If you want an LRU … Read more

What is locality of reference?

This would not matter if your computer was filled with super-fast memory. But unfortunately that’s not the case and computer-memory looks something like this1: +———-+ | CPU | <<– Our beloved CPU, superfast and always hungry for more data. +———-+ |L1 – Cache| <<– ~4 CPU-cycles access latency (very fast), 2 loads/clock throughput +———-+ |L2 … Read more

How do I include a dynamic block in the product page with full page caching turned on?

Overview In order to answer I need to explain a little first. The Magento FPC process knows four states. Page in cache, no dynamic blocks Page in cache, dynamic blocks cached Page in cache, dynamic blocks not cached Page not in cache State 1 and 2 are processed without the full Magento application being initialized. … Read more

Caffeine versus Guava cache

The main difference is because Caffeine uses ring buffers to record & replay events, whereas Guava uses ConcurrentLinkedQueue. The intent was always to migrate Guava over and it made sense to start simpler, but unfortunately there was never interest in accepting those changes. The ring buffer approach avoids allocation, is bounded (lossy), and cheaper to … Read more

Does SQLAlchemy support caching?

We have a pretty comprehensive caching solution, as an example in conjunction with embedded hooks, in 0.6. It’s a recipe to subclass Query, make it aware of Beaker, and allow control of query caching for explicit queries as well as lazy loaders via query options. I’m running it in production now. The example itself is … Read more

tech