With Drupal 8, you can build websites that are complex and loaded with dynamic content. Drupal lets you extend its functionalities by adding as many features as you
want and yet provide a great user-experience. This is what sets Drupal apart but it does take a hit on your website performance. A feature-rich Drupal website will
make your website heavy and thus make your performance go downhill.
Whenever your users load your page or perform any actions on them, your poor database will have to be summoned and ordered to show results based on complicated
calculations. A single call to a Drupal page can make anywhere between 50-100 database queries. This seriously slows down the performance of your website. What can be
done instead is you store the data that has already been loaded/calculated once in a separate zone and then whenever that data is needed again, just render it from
that zone. This process is called Caching and the zone is called a Cache. It’s almost like keeping some quick cash in your pocket so when you really need it, you don’t
have to reach out all the way to your wallet every time!
The Cache API in Drupal 8 stores any kind of data that takes a longer time to be computed. You can either permanently store data in the cache or give it a storing time
span. Any type of data can be stored with the Cache API.