Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions _build/data/transport.core.system_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,6 @@
'area' => 'caching',
'editedon' => null,
], '', true, true);
$settings['cache_format'] = $xpdo->newObject(modSystemSetting::class);
$settings['cache_format']->fromArray([
'key' => 'cache_format',
'value' => 0,
'xtype' => 'numberfield',
'namespace' => 'core',
'area' => 'caching',
'editedon' => null,
], '', true, true);
$settings['cache_handler'] = $xpdo->newObject(modSystemSetting::class);
$settings['cache_handler']->fromArray([
'key' => 'cache_handler',
Expand Down
17 changes: 17 additions & 0 deletions setup/includes/upgrades/common/3.3.0-remove-cache-format.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

/**
* Remove cache_format from system settings.
*
* Changing this setting in the manager crashes the site: system settings are
* loaded from cache, so a new format cannot read the old cache files. Override
* via $config_options['cache_format'] in core/config/config.inc.php instead
* (and clear the cache directory when changing it).
*
* @var modX $modx
* @package setup
*/

use MODX\Revolution\modSystemSetting;

$modx->removeObject(modSystemSetting::class, ['key' => 'cache_format']);
12 changes: 12 additions & 0 deletions setup/includes/upgrades/mysql/3.3.0-pl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* Specific upgrades for Revolution 3.3.0-pl
*
* @var modX $modx
* @package setup
* @subpackage upgrades
*/

/* run upgrades common to all db platforms */
include dirname(__DIR__) . '/common/3.3.0-remove-cache-format.php';
Loading