Varnish Cache is a web application accelerator. It stands in front of a web server and can cache any type of data. It stores data in memory and can speed up your application by a factor of 300-1000x depending on your architecture.
Continue reading
Tag Archives: caching
How to escape double quotes in Varnish regex
This is going to be the shortest post ever both might save hours to people who don’t know it yet.
The good old fashion \” won’t work. Suggestion from the manual to use %22 doesn’t work either. Solution to this problem is regex ASCII escape “\x22″.
1 |
"\x22FooBar\x22" |
Simple as that but took me some time to figure it out.
Cache like a Pro with Memcached
Every application have a bottle neck. It might be a database query, request to an external service, hard drive I/O or an expensive algorithm. Even if the software is running smoothly it might be necessary to optimise in order to handle higher traffic. Significant part of optimisation is caching.
Continue reading