$block->setCacheLifetime(null);
Did you ever try to make a block that is cached by default uncacheable? Let's play a little bit with caches and layout xml and you might learn a trick or two along the way...
First of all: Why would you want to make a block uncacheable?! - Just because you can :) And here's an example:
Let's look at…
Redis Optimization
If you're using Redis as a cache backend or to store user sessions in Magento take a closer look on what's happening on your servers. On one of our servers I discovered that the Redis log file was constantly growing and showing tons of error messages like this one:
[1185] 05 Feb 01:17:36 * 1 change
…
Table of content
- Basics
- Two-Level Caching
- Problem: Priorities
- Problem: First-level cache is not refreshed correctly
- Problem: Hardcoded first-level cache classes
- Related posts
- Further reading
Basics
You might want to read my blog post about caching internals to understand how the different classes ar…
Magento's Database Cache Backend Mess
For our recent project, we're experimenting with the performance and advantages/disadvantages of different cache backends... again. We're running Magento on multiple servers and so there's always the additional issue if every node should have its own caches, or if they should share a common one (or…
Nginx - Varnish - Apache - Magento / TYPO3 / ...
Why do we need all these servers?
Most web applications are very slow, escpecially if under stress. Magento is one of those slower ones, but we cannot blame it for being slow, because this is the price we have to pay for its huge amount of features and its great flexibility.
We can handle performanc…