Use MemCached as your Neos cache backend

TYPO3 Neos is built on top of the TYPO3 FLOW framework. It's a pretty advanced framework that relies on concepts like Aspect Oriented Programming and Reflection. This is great because it can clean up your code base if properly implemented. But it also means that a lot of 'inspection' work needs to be done before any code can be executed. Luckily the result of most of this work is cached in various types of caches.

Some of Neos' many caches

Some of Neos' many caches

The caches are handled by the Caching Framework. There is a large number of Backend and Frontend caches to choose from. Normally most of these caches use a File- or a Database backend. These will get the job done, but are not extremely fast.

If you have enough memory on your server, you can install MemCached or Redis and use that as a backend for some of the caches. This will reduce the load on your database server quite a bit. Redis is preferable because MemCached has some design constraints. But for this example I will go with MemCached. Since I run MemCached locally on the server, I can use the socket.

You can define your Cache configuration in a file called Caches.yaml:

Caches.yaml configuration file YAML

Once you upload this configuration you should notice quite a speed increase. And also you should see quite a load reduction on your filesystem and database server.

Want to react? Reach me on Twitter