In some case, we can have inconstancy between the JSON file and the database settings.
For example, if we use the wp cli tool to update a setting (or just update the settings directly in database), the static file won't be updated until an admin save the configuration again from the back office.
That's why I suggest limiting the use of this JSON static config file to the standalone mode. In "normal" mode, we should get the configuration from the database directly.
In some case, we can have inconstancy between the JSON file and the database settings.
For example, if we use the
wp
cli tool to update a setting (or just update the settings directly in database), the static file won't be updated until an admin save the configuration again from the back office.That's why I suggest limiting the use of this JSON static config file to the standalone mode. In "normal" mode, we should get the configuration from the database directly.