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

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.

主站蜘蛛池模板: 临朐县| 南京市| 周宁县| 敦化市| 远安县| 大同县| 胶南市| 重庆市| 华池县| 靖安县| 遂宁市| 凤庆县| 洱源县| 静宁县| 页游| 兴城市| 龙游县| 鄄城县| 新安县| 永新县| 绥芬河市| 庐江县| 阜城县| 平舆县| 乌拉特后旗| 建昌县| 开远市| 资溪县| 鄂温| 贞丰县| 中牟县| 财经| 永康市| 沐川县| 萝北县| 封开县| 白沙| 霍邱县| 将乐县| 武强县| 乐清市|