Day 20 - Cache API and Cache Tags

General Instructions for any Exercise Card

  • Pick the Activity Card you wish to work on, and Download the PDF card
  • Spend some time reading through or watching the Primary Tutorial
  • Implement the exercise
  • Use Hints/Debug/Solution/Additional Resources provided on some of the cards
  • Discuss in comments should you have any queries

Objective

  • Drupal 8’s cache API, although fairly similar in its usage to D7, has a few fascinating additions to it. Mainly the cache tags, that would allow you to invalidate caches automatically whenever related content has changed.
Activity Card Download