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

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.

主站蜘蛛池模板: 英吉沙县| 龙州县| 宣化县| 珲春市| 上饶县| 延津县| 新邵县| 阳原县| 九寨沟县| 天祝| 社旗县| 军事| 新郑市| 禹城市| 阜阳市| 昌都县| 铜山县| 微山县| 贺兰县| 石嘴山市| 象州县| 巴中市| 信宜市| 莱西市| 长武县| 海林市| 清丰县| 汉源县| 伊金霍洛旗| 拉萨市| 永嘉县| 三都| 泗水县| 澳门| 抚远县| 石家庄市| 泾阳县| 盖州市| 翁源县| 犍为县| 南郑县|