基础篇12. 关闭缓存,检查网站是否出错

龵龳龯龮settings.local.php龈龇龅龄龃67齺齸84齺齲齱齯齭齪齲齧齥齢齞齚齘龄齗齕齓齪齑齎齊齈齇齄齃Drupal console齲鼷鼴齑齎鼱鼯鼫鼷鼴齑齎齊(鼨鼦鼢鼡齲鼝鼛龄鼚齲齱齯龅龄鼖鼒鼎鼌齲齺鼉鼈鼅鼄鼁黽黺龄黷黴鼝黰鼒黭黬黩)

/**
 * Disable the render cache (this includes the page cache).
 *
 * Note: you should test with the render cache enabled, to ensure the correct
 * cacheability metadata is present. However, in the early stages of
 * development, you may want to disable it.
 *
 * This setting disables the render cache by using the Null cache back-end
 * defined by the development.services.yml file above.
 *
 * Do not use this setting until after the site is installed.
 */
 $settings['cache']['bins']['render'] = 'cache.backend.null';
/**
 * Disable Dynamic Page Cache.
 *
 * Note: you should test with Dynamic Page Cache enabled, to ensure the correct
 * cacheability metadata is present (and hence the expected behavior). However,
 * in the early stages of development, you may want to disable it.
 */
 $settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';

麨麥麣麢龮麠麜麛龄麗麖麕齓龄麔麒麏麋麈麇麕齓鼅麃麂鹿鹽鹻龄鹺鼈鹹鹸龄鼚黬鼒黭鹶龮麕齓鼄鹴鹱黽黺齊

鹯齧鹫龄鹨鹸麂鹦齲鹥鹤service龄鹠麔 twig debug 齸鹟齃齑齎龄龵龳鹜鹙鹖鹸local.services.yml龈龇龄

鹒鹎鹋龈龇龅鹈cache鹆鹄鹨false龄麨麥鹁鸿齇鼷鼴鹸齑齎齊鸽鸻龄龵龳鸺龯龮settings.local.php龈龇龅鹻鸷鹁67齺齸84齺齲齱齯龄鹒鹁鸴齇鼷鼴鹸齑齎齊麏鸳齲鸲鸱鸯鸫黴鸩鹿鸦鸣齲齊鼚鸡鸟鸛鸘麏麋鸔鸓鼫鸲鸱龄黬麨鸡麥麗麖麕齓齲麈麇鸐鸍鸋鸇鸃龄鷿麋鷽鷻鹺鷹鹸齊

鷽鷶鷳麨鼄鸿鷰鷭龈鷫鷨鷦齃rebuild.php鼈鹹鷤鷠鷝鷜龄黷黴龄龵鷛鷙鷖鷒鷎龄鹋麏麋鷍鷋齸麏麋鼢鼡齲Drupal8龅黴鷈鷅鷤鷠鷝鷜齲齊鷽鷶鷂鷀鶼鶸鶶鶵drupal8鶴鹄鼡鶳鶱鶭齲龈鶪鶩鶧鼄鶣龮麏麋鷝鷜龄鼁鹹鷂鶟鶜龃鶙鶕鶔鶓龮鶑鸳齊

鶎鶌龄龵龳鹋麏鸳麗麖麕齓龄鸣鶉鶆齲鹒黬黴麕齓鶅鶔鶁鵾鶉鶆鵻鵷鼄鵴鵱黽黺龄鵯黴鶉鶆鷽鷻鼄鶧鼄鵭鸇齊

鵩鼦鵧鵤黴鵣鵢鵠齗齕齑齎龄龵龳龯鵜齈鼫鶉鷖齊

本书共56小节:

评论 (写第一个评论)