SQLite cache mode: Shared or Private?
l
Hi all, I am getting very mixed information from the Umbraco docs (and the project template) when it comes to which cache mode to use for SQLite. - https://docs.umbraco.com/umbraco-cms/reference/configuration/connectionstringssettings > Mentions that
Private
mode should be used, and
Shared
is discouraged / deprecated. - https://docs.umbraco.com/umbraco-cms/fundamentals/setup/install/unattended-install#sqlite-example-in-appsettings.json > Mentions that the recommended value is
Shared
. - https://github.com/umbraco/Umbraco-CMS/blob/contrib/templates/UmbracoProject/.template.config/template.json#L147 > The Umbraco Project template is set to use
Shared
. Anyone knows what is the main difference between the two? And what would be recommended? I would guess
Private
, from the information in the first link, but again everywhere else in the docs it mentions
Shared
. 😅 Thanks!
s
I would recommend creating an isssue for the docs team please! I am not sure myself and it's something we should get the CMS team to advise on properly 🙂
l
My colleague ended up creating a PR for both the docs and the core (https://github.com/umbraco/Umbraco-CMS/pull/16627) - to adjust every reference from
Shared
to
Private
. Funnily enough (or not) changing all of the connection strings to use
Private
made all the integration tests fail 🫣
Also - sqlite themselves say that shared caching is an obsolete feature and should be discouraged. https://www.sqlite.org/sharedcache.html
51 Views