- Drupal 8 Module Development
- Daniel Sipos
- 163字
- 2021-07-02 15:45:13
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.
- 復雜軟件設計之道:領域驅動設計全面解析與實戰
- 樂學Web編程:網站制作不神秘
- Python程序設計
- 快速念咒:MySQL入門指南與進階實戰
- Web Development with MongoDB and Node(Third Edition)
- 搞定J2EE:Struts+Spring+Hibernate整合詳解與典型案例
- Android應用開發深入學習實錄
- Raspberry Pi Robotic Projects(Third Edition)
- Android應用開發實戰(第2版)
- Using Yocto Project with BeagleBone Black
- 你好!Java
- 程序員的算法趣題2
- .NET應用架構設計:原則、模式與實踐
- Mastering Chef Provisioning
- 高性能Java架構:核心原理與案例實戰