Basic knowledge or willingness to learn about caching in Drupal 8
Basic knowledge of OOP
Basic knowledge of Twig syntax in Drupal 8 context
Nice to have:
Basic Understanding of Dependency Injection and Services
Basic understanding of Render Arrays in Drupal 8
The session will be all about demystifying Drupal 8 Cache API and showing some practical examples in 45min.
(How hard can it be?)
It will consist of a few main parts:
1. A brief introduction and explanation why this presentation was made.
(Mostly due to me and fellow D8 developers stumbling onto the same Cache API related issues)
2. A brief description of Drupal 8 Cache API, terminology and usage.
This part will briefly touch on most things related to Cacheability Metadata, such as Cache Tags and Contexts, Max-Age and Cache Bubbling.
3. The practical part aka "Examples of what not to do (or how to fix it)"
This section will contain PHP and Twig code examples from real life issues encountered on Drupal 8 projects. The examples will show the basic premise of a problem, initial version of the code and a solution to the problem. All code examples will have clear visual cues on what the audience should focus on, explanation on what the issues are and how simple it is to resolve said issues with the use of Drupal 8 Cache API.
There will be 2 - 3 examples in total, each taking between 2 and 5 minutes to go through.
The theoretical part of session should be relatively easy to follow for anyone who has at least basic understanding "what caching is" and "why do we cache stuff" in the context of web development. I will try to be brief, on point and with visual examples to aid the audience.
Following the practical examples/code with no previous coding experience might be difficult, hence the prerequisites of at least basic PHP OOP understanding. Twig parts will have minimal requirements for syntax knowledge, but at least a basic understanding of how Twig works in Drupal 8 will be necessary.