官术网_书友最值得收藏!

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 with a cache backend to store the results of complex data calculations. This can be read in the next requests to avoid the need for reprocessing that task. This goes hand in hand with the cache invalidation that happens 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 output with metadata that describes when the cache of that output needs to be invalidated.

We will see these in action in a later chapter dedicated to caching.

主站蜘蛛池模板: 永城市| 运城市| 永顺县| 洪湖市| 寿光市| 县级市| 翁牛特旗| 封丘县| 铜川市| 榆社县| 富锦市| 明光市| 固镇县| 禹州市| 四会市| 仁化县| 武陟县| 宿州市| 巴林左旗| 蒙城县| 略阳县| 蕉岭县| 磴口县| 镇原县| 利津县| 灵丘县| 普宁市| 凉城县| 岑溪市| 浮山县| 新丰县| 昌黎县| 新田县| 郴州市| 普宁市| 贵南县| 济宁市| 钟祥市| 沙湾县| 灯塔市| 浦城县|