There are two problems with the code that invalidates cache.

First, when checking if a module exists, the module tries to look up a service
$module_handler->moduleExists('cache.page')

Then, when the settings form is constructed, there's a check on get('bin') which does not return the value of the variable $bin.

if ($cache_page->get('bin') === 'cache_page')

$cache_page->get('bin') returns FALSE, so the following line is never executed.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

svenryen created an issue. See original summary.

  • svenryen committed ca6aa28 on 8.x-1.x
    Issue #3274387 by svenryen: Problem with cache clearing
    
svenryen’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.