Version:

Acquia Cohesion renames to Site Studio from version 6.2. Tell me more.

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 cohesion.template_storage.key_value.

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 env.services.yml:

services:
      cohesion.template_storage:
             alias: cohesion.template_storage.key_value

Then in your settings.php:

$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

DX8 knowledge base icon

Frequently asked questions

Get instant answers to common questions. Available online 24/7.

Find answers

Raise a ticket icon

Raise a support ticket

To raise a ticket, sign into Acquia Cloud and select Help in the top menu.

Raise support ticket

Acquia

Copyright © 2020 Acquia, Inc. All Rights Reserved. Drupal is a registered trademark of Dries Buytaert.