Since the internal page cache now has a dedicated cache bin (https://www.drupal.org/node/2896679), the example.settings.local.php file should be updated to reflect that. Currently, uncommenting the three $settings['cache']['bins'] lines in that file will not prevent the page from being cached during development. A line with $settings['cache']['bins']['page'] = 'cache.backend.null'; is needed.
Comments
Comment #2
daniel korteThis patch adds the necessary line.
Comment #3
daniel korteComment #4
bkosborneWas about to create this issue myself! Thanks.
I updated it to include a whole new comment block instead, and remove the reference to the page cache in the render cache comment block.
Note that there are now 4 large comment blocks with largely the same comments about disabling certain caches. At this point it may make sense to create one single comment block that explains how to disable any cache bin, and provided commented out implementations for each bin provided by core?
Comment #5
dawehnerThis is a nice small addition!
Comment #6
bkosborneMissed a couple words to swap out as I read this over again.
Comment #7
wim leersWe totally missed this in #2889603: Split the internal page cache from the rest of the render cache.
RTBC++
Comment #8
catchThis looks good cut can we change that line to "Only use this setting once the site has been installed" and maybe give a reason?
Comment #9
daniel korteI found where the decision was made to keep this line brief since the reason for it's existence might be a bug and the example.settings.local.php file is already long. See the relevant discussion here: #2321407-9: Suggested setting in example.settings.local.php for render doesn't work in install
Either way here is a new patch that changes those lines to the language from #8 if that is preferable.
Comment #10
daniel korteComment #11
anavarre@Daniel Korte - Please don't RTBC your own patch. See https://www.drupal.org/patch/review#review
Comment #12
daniel korteYeah, sorry. I wasn't sure since it was just a minor comment update and it was already RTBC before that.
Comment #14
wim leersYeah I think self-RTBC'ing for a comment-only reroll is fine.
Comment #15
catchCommitted/pushed to 8.6.x and cherry-picked to 8.5.x. Thanks!
Comment #18
wim leersThanks, @catch, and thank you especially, @Daniel Korte! :)