add config setting

This commit is contained in:
Luke Pulverenti 2016-06-30 11:10:54 -04:00
parent b445948ebf
commit 4a95ec28f2
2 changed files with 3 additions and 1 deletions

View File

@ -192,6 +192,7 @@ namespace MediaBrowser.Model.Configuration
public int MigrationVersion { get; set; }
public int SchemaVersion { get; set; }
public int SqliteCachePages { get; set; }
public bool DownloadImagesInAdvance { get; set; }
@ -211,6 +212,7 @@ namespace MediaBrowser.Model.Configuration
{
LocalNetworkAddresses = new string[] { };
Migrations = new string[] { };
SqliteCachePages = 10000;
EnableCustomPathSubFolders = true;
EnableLocalizedGuids = true;

View File

@ -123,7 +123,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
protected override async Task<IDbConnection> CreateConnection(bool isReadOnly = false)
{
var connection = await DbConnector.Connect(DbFilePath, false, false, 10000).ConfigureAwait(false);
var connection = await DbConnector.Connect(DbFilePath, false, false, _config.Configuration.SqliteCachePages).ConfigureAwait(false);
connection.RunQueries(new[]
{