Caching basically means to save the output of an expensive calculation in order to avoid performing the same calculation again. Django provides a robust cache system which in turn helps you save dynamic web pages so that they don’t have to be evaluated over and over again for each request. Some of the caching strategies of Django are listed down in the following table:
Strategy Description
Memcached
Memory-based cache server which is the fastest and most efficient
Filesystem caching
Cache values are stored as separate files in a serialized order
Local-memory caching
This is actually the default cache in case you have not specified any other. This type of cache is per-process and thread-safe as well
Database caching
Cache data will be stored in the database and works very well if you have a fast and well-indexed database server