We are preventing configuration changes on some of our production sites using the config_readonly module, so that we can maintain clean config-in-code setups.

However, it appears that xmlsitemap, when rebuilt during a cron run, calls batchVariableSet() and saves config. Cron dies when config_readonly is on.

Is what's being saved in config really necessary to be there? Could it be stored somewhere else?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cwells created an issue. See original summary.

Dave Reid’s picture

Status: Active » Needs review
FileSize
414 bytes

This moves the $this->config->save() call to not always happen every time.

  • Dave Reid committed ec2f765 on 8.x-1.x
    Issue #2972043 by Dave Reid: Fixed incompatibility with config_readonly...
Dave Reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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