caching
How to force a browser to refresh a cached version of a webpage
Use different URLs. If the main entry point to your website (like the main index file) is cached, then you’re screwed… maybe you should register another domain name?
What is a Warm-Up Cache?
The warm up is just the period of loading a set of data so that the cache gets populated with valid data. If you’re doing performance testing against a system that usually has a high frequency of cache hits, without the warm up you’ll get false numbers because what would normally be a cache hit … Read more
Disable autofill on a web form through HTML or JavaScript?
You can do it at the input level in HTML by adding autocomplete=”off” to the input. Turn Off Autocomplete for Input You could also do it via JS such as: someForm.setAttribute( “autocomplete”, “off” ); someFormElm.setAttribute( “autocomplete”, “off” );
Clearing ActiveRecord cache
To a first approximation: ActiveRecord::Base.connection.query_cache.clear
Is my understanding of AoS vs SoA advantages/disadvantages correct?
“traversing” just means looping over the data. And yes, you’re right about cache ways and collisions. 64B (cache line size) blocks of memory that are offset from each other by a large power of 2 map to the same set, and thus compete with each other for ways in that set, instead of being cached … Read more
React app has to clear browser cache after new deployment
The usual approach is to add a hash to the script and other assets filenames depending on the time or content. So when before you had script.js now it will be script.[contenthash].js. The content hash will be different every time you change the content of the script. Now when a user requests the index.html of … Read more
Force Hibernate to read database and not return cached entity
session.refresh(entity) or entityManager.refresh(entity) (if you use JPA) will give you fresh data from DB.
When to cache Tasks?
I have trouble understanding how this actually helps more than just storing the results. When a method is marked with the async modifier, the compiler will automatically transform the underlying method into a state-machine, as Stephan demonstrates in previous slides. This means that the use of the first method will always trigger a creation of … Read more