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

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.

主站蜘蛛池模板: 彭水| 麻栗坡县| 治多县| 江源县| 墨脱县| 灵台县| 开鲁县| 石楼县| 虎林市| 武平县| 长沙市| 都兰县| 来宾市| 犍为县| 石棉县| 竹溪县| 黑水县| 沐川县| 浦县| 浦县| 瑞昌市| 从江县| 咸丰县| 佛山市| 肥城市| 蒙城县| 兴安盟| 都江堰市| 铁岭市| 时尚| 湖南省| 呼和浩特市| 福建省| 阳朔县| 准格尔旗| 剑河县| 柳江县| 康乐县| 繁峙县| 即墨市| 合水县|