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

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 these settings on or off to ensure a production-like environment will work just as well as under your development conditions.

主站蜘蛛池模板: 宿州市| 拉萨市| 菏泽市| 彰化市| 耿马| 南充市| 盐源县| 汉寿县| 浦江县| 呼玛县| 若羌县| 桃江县| 泰和县| 香河县| 安岳县| 闽侯县| 寻甸| 望奎县| 石台县| 郧西县| 台东市| 东港市| 洪雅县| 乌恰县| 西盟| 英超| 长阳| 闵行区| 齐齐哈尔市| 元阳县| 平安县| 本溪市| 长海县| 友谊县| 长兴县| 新巴尔虎右旗| 南昌市| 徐水县| 清原| 冕宁县| 那坡县|