Skip to content

Commit 3faacf0

Browse files
authored
Merge pull request #7444 from Matthew-Wise/main
Updated SQLite Cache
2 parents 62825b7 + 27853d3 commit 3faacf0

File tree

14 files changed

+24
-24
lines changed

14 files changed

+24
-24
lines changed

10/umbraco-cms/fundamentals/setup/install/unattended-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ It is recommended that you make use of the values shown below for the `Cache`, `
4747
```json
4848
{
4949
"ConnectionStrings": {
50-
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
50+
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
5151
"umbracoDbDSN_ProviderName": "Microsoft.Data.SQLite"
5252
}
5353
}

10/umbraco-cms/reference/configuration/connectionstringssettings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ An connection strings config can look like this:
1212
```json
1313
{
1414
"ConnectionStrings": {
15-
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
15+
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
1616
"umbracoDbDSN_ProviderName": "Microsoft.Data.SQLite"
1717
}
1818
}
1919
```
2020

2121
{% hint style="info" %}
22-
We recommend using private cache for SQLite. You can read more on why shared cache is discouraged in [the official SQLite documentation](https://sqlite.org/sharedcache.html).
22+
We recommend using shared cache for SQLite when using Umbraco, as it provides better performance and consistency when multiple connections may access the database simultaneously.
2323
{% endhint %}
2424

2525
The connection string used here is an SQLite connection string, that will connect to a data in the file `Umbraco.sqlite.db` located in `/umbraco/Data` .

10/umbraco-commerce/how-to-guides/configure-sqlite-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ After configuring Umbraco CMS with SQLite, Umbraco Commerce will automatically u
3434
{
3535
...
3636
"ConnectionStrings": {
37-
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
37+
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
3838
"umbracoDbDSN_ProviderName": "Microsoft.Data.SQLite",
39-
"umbracoCommerceDbDSN": "Data Source=|DataDirectory|/Umbraco.Commerce.sqlite.db;Mode=ReadWrite;Foreign Keys=True;Pooling=True;Cache=Private",
39+
"umbracoCommerceDbDSN": "Data Source=|DataDirectory|/Umbraco.Commerce.sqlite.db;Mode=ReadWrite;Foreign Keys=True;Pooling=True;Cache=Shared",
4040
"umbracoCommerceDbDSN_ProviderName": "Microsoft.Data.SQLite"
4141
},
4242
...

13/umbraco-cms/fundamentals/setup/install/unattended-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ It is recommended that you make use of the values shown below for the `Cache`, `
4747
```json
4848
{
4949
"ConnectionStrings": {
50-
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
50+
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
5151
"umbracoDbDSN_ProviderName": "Microsoft.Data.SQLite"
5252
}
5353
}

13/umbraco-cms/reference/configuration/connectionstringssettings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ An connection strings config can look like this:
1111
```json
1212
{
1313
"ConnectionStrings": {
14-
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
14+
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
1515
"umbracoDbDSN_ProviderName": "Microsoft.Data.SQLite"
1616
}
1717
}
1818
```
1919

2020
{% hint style="info" %}
21-
We recommend using private cache for SQLite. You can read more on why shared cache is discouraged in [the official SQLite documentation](https://sqlite.org/sharedcache.html).
21+
We recommend using shared cache for SQLite when using Umbraco, as it provides better performance and consistency when multiple connections may access the database simultaneously.
2222
{% endhint %}
2323

2424
The connection string used here is an SQLite connection string, that will connect to a data in the file `Umbraco.sqlite.db` located in `/umbraco/Data` .

13/umbraco-commerce/how-to-guides/configure-sqlite-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ After configuring Umbraco CMS with SQLite, Umbraco Commerce will automatically u
3434
{
3535
...
3636
"ConnectionStrings": {
37-
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
37+
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
3838
"umbracoDbDSN_ProviderName": "Microsoft.Data.SQLite",
39-
"umbracoCommerceDbDSN": "Data Source=|DataDirectory|/Umbraco.Commerce.sqlite.db;Mode=ReadWrite;Foreign Keys=True;Pooling=True;Cache=Private",
39+
"umbracoCommerceDbDSN": "Data Source=|DataDirectory|/Umbraco.Commerce.sqlite.db;Mode=ReadWrite;Foreign Keys=True;Pooling=True;Cache=Shared",
4040
"umbracoCommerceDbDSN_ProviderName": "Microsoft.Data.SQLite"
4141
},
4242
...

15/umbraco-cms/fundamentals/setup/install/unattended-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ It is recommended that you make use of the values shown below for the `Cache`, `
4747
```json
4848
{
4949
"ConnectionStrings": {
50-
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
50+
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
5151
"umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite"
5252
}
5353
}

15/umbraco-cms/fundamentals/setup/upgrading/version-specific/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ The deprecated version, `Microsoft.Data.SQlite`, has been removed and will requi
262262
{
263263
...
264264
"ConnectionStrings": {
265-
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
265+
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
266266
"umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite",
267-
"umbracoCommerceDbDSN": "Data Source=|DataDirectory|/Umbraco.Commerce.sqlite.db;Mode=ReadWrite;Foreign Keys=True;Pooling=True;Cache=Private",
267+
"umbracoCommerceDbDSN": "Data Source=|DataDirectory|/Umbraco.Commerce.sqlite.db;Mode=ReadWrite;Foreign Keys=True;Pooling=True;Cache=Shared",
268268
"umbracoCommerceDbDSN_ProviderName": "Microsoft.Data.Sqlite"
269269
},
270270
...

15/umbraco-cms/reference/configuration/connectionstringssettings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ The connection strings config can look like this:
1111
```json
1212
{
1313
"ConnectionStrings": {
14-
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
14+
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
1515
"umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite"
1616
}
1717
}
1818
```
1919

2020
{% hint style="info" %}
21-
We recommend using private cache for SQLite. You can read more on why shared cache is discouraged in [the official SQLite documentation](https://sqlite.org/sharedcache.html).
21+
We recommend using shared cache for SQLite when using Umbraco, as it provides better performance and consistency when multiple connections may access the database simultaneously.
2222
{% endhint %}
2323

2424
The connection string used here is an SQLite connection string, that will connect to a data in the file `Umbraco.sqlite.db` located in `/umbraco/Data` .

15/umbraco-commerce/how-to-guides/configure-sqlite-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ After configuring Umbraco CMS with SQLite, Umbraco Commerce will automatically u
3434
{
3535
...
3636
"ConnectionStrings": {
37-
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
37+
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
3838
"umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite",
39-
"umbracoCommerceDbDSN": "Data Source=|DataDirectory|/Umbraco.Commerce.sqlite.db;Mode=ReadWrite;Foreign Keys=True;Pooling=True;Cache=Private",
39+
"umbracoCommerceDbDSN": "Data Source=|DataDirectory|/Umbraco.Commerce.sqlite.db;Mode=ReadWrite;Foreign Keys=True;Pooling=True;Cache=Shared",
4040
"umbracoCommerceDbDSN_ProviderName": "Microsoft.Data.Sqlite"
4141
},
4242
...

0 commit comments

Comments
 (0)