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

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.

主站蜘蛛池模板: 万源市| 手游| 永春县| 静宁县| 阳朔县| 北碚区| 双鸭山市| 乌兰浩特市| 渭南市| 利津县| 会宁县| 涟源市| 积石山| 沂源县| 旺苍县| 获嘉县| 谢通门县| 铁岭县| 濮阳县| 江陵县| 洛南县| 西藏| 克什克腾旗| 开鲁县| 穆棱市| 黄梅县| 荔浦县| 项城市| 新乡县| 南召县| 武安市| 托克逊县| 绍兴县| 茌平县| 望江县| 宣城市| 宝坻区| 和田县| 凤庆县| 获嘉县| 西城区|