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

Developer settings

While doing local development, it's beneficial to (sometimes) disable things such as caching in order to be quicker. Drupal 8 takes caching to a whole new level, so many hook implementations, for example, get cached. To circumvent this, we can use some local settings that disable caching, prevent CSS and JavaScript file aggregation, and do similar things.

These settings are found inside the example.settings.local.php file in the /sites folder of the installation. To benefit from these, you will need to make sure that they are included in your main settings.php file (either by copying them inside or including a file such as this).

A word of caution--do keep in mind that by developing with caching disabled at all times, you run the risk of overlooking certain aspects that won't work properly with caching enabled (such as invalidations). So, do try to toggle on/off these settings to ensure a production-like environment will work just as well as under your development conditions.

主站蜘蛛池模板: 万州区| 全椒县| 龙里县| 宜君县| 平湖市| 佛冈县| 长阳| 建湖县| 延川县| 凯里市| 平山县| 樟树市| 昌邑市| 安仁县| 光山县| 南阳市| 南丰县| 长子县| 孟连| 皋兰县| 洪江市| 铁岭县| 萨迦县| 辉县市| 甘泉县| 阳信县| 宁晋县| 崇左市| 博客| 济南市| 阿合奇县| 开远市| 原平市| 乳山市| 旬邑县| 常州市| 石门县| 尼玛县| 阿拉尔市| 延川县| 黄大仙区|