Home>
I want to set the Cache engine settings for each site

I manage multiple sites with CakePHP.
I want to set the Cache engine settings for each site.
Is it possible to overwrite the Cache settings in config/app.php with another file?
Thank you very much.

The contents I want to change are as follows.

'Cache' =>[
    'short' =>[
        'className' =>xxxx,
        'duration' =>xxx,
        ...abridgement
    ],,
]
What I tried

At the bottom of bootstrap.php, we load the configuration files for each site and configure the Cache engine.
When I checked the cache settings with Configure :: read, the settings were overwritten as expected.
However, the cache is actually created by the setting of app.php.

* The content of the app is set in the same way, but the content is reflected normally.

//bootstrap.php
Configure :: load ("configuration file for each site," default ", false);
// Configuration file for each site
return [
    'Cache' =>[
        'short' =>[
            'className' =>Override value,
            'duration' =>Override value,
            ...abridgement
        ],,
    ]
]
Supplementary information (FW/tool version, etc.)

■ Environment
cakephp: 4.1.0
php: 7.4
centos: 7