Can Site studio templates be saved into the database?
Yes, the generated templates can be saved to the database.
As of version 6.3.5 the template storage can be switched from the file system to the key value storage. If enabled Site Studio will be using the database more often as it will save all config templates in the database.
Database utilisation will increase especially during rebuild and sync operations, be aware that this will also increase the size of your database.
To enable this feature you need to change the alias of the
cohesion.template_storage services to point to
You can do so by providing a site specific services.yml and provide the path to it in your settings.php
for example in your
Then in your
$settings['container_yamls'] = '/path/to/env.services.yml'
Acquia Site Factory
This feature is especially useful when utilising a distributed filesystem as found on Acquia Site Factory, however, the above approach applies this change throughout your platform.
For a more flexible per-site approach you should consider installing the Site Studio ACSF module