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

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.

主站蜘蛛池模板: 登封市| 肃宁县| 嘉峪关市| 屏东市| 肃北| 苍溪县| 德保县| 阿尔山市| 中宁县| 宜昌市| 抚宁县| 永定县| 阿拉尔市| 皋兰县| 黄冈市| 红河县| 巍山| 长泰县| 洮南市| 遂溪县| 潞城市| 靖江市| 宾阳县| 盐源县| 民勤县| 独山县| 通城县| 上高县| 武夷山市| 巢湖市| 山东省| 抚顺市| 土默特左旗| 察雅县| 丹寨县| 灌阳县| 方山县| 体育| 垫江县| 临沭县| 普洱|