- Drupal 8 Module Development
- Daniel Sipos
- 187字
- 2021-07-02 15:45:11
Caching
The last major subsystem that I will include here is the caching layer. Drupal 8 has gone to great lengths to improve the performance of building pages and rendering data. To this end, the caching system has become an important part to consider whenever we either do complex or heavy calculations or render content.
From a module developer's perspective, there are two main pillars of the caching system. The first one provides developers a cache backend to store the result of complex data calculations. This data can be read in the next requests to avoid the need for redoing those calculations. This goes hand in hand with cache invalidation when something in the system changes that would require the calculations to be redone. The second pillar is the render cache, which allows developers to wrap their data output with metadata that describe in what context and when that data output needs to be invalidated or changed. The entire markup of that bit gets cached and invalidated based on the rules of the metadata.
We will see these in action in a later chapter dedicated to caching.
- Expert C++
- Node.js 10實(shí)戰(zhàn)
- Learning Apex Programming
- Python數(shù)據(jù)分析基礎(chǔ)
- Vue.js 2 and Bootstrap 4 Web Development
- 差分進(jìn)化算法及其高維多目標(biāo)優(yōu)化應(yīng)用
- 鋒利的SQL(第2版)
- 焊接機(jī)器人系統(tǒng)操作、編程與維護(hù)
- Learning Unity 2D Game Development by Example
- 51單片機(jī)C語(yǔ)言開(kāi)發(fā)教程
- 詳解MATLAB圖形繪制技術(shù)
- Machine Learning With Go
- Python計(jì)算機(jī)視覺(jué)和自然語(yǔ)言處理
- Implementing Microsoft Dynamics NAV(Third Edition)
- C# 7.0本質(zhì)論