Web.config / appsettings.json reference

<< Click to Display Table of Contents >>

Navigation:  Gnostice Document Studio .NET > Reference Documentation > Config Files Reference >

Web.config / appsettings.json reference

This table documents the settings used by the ASP.NET Document Viewer, which can be supplied via the Web.config file. The same settings are also used by the ASP.NET Core Document Viewer, which can be supplied via the appsettings.json file.

 

Key

Value

Explanation

DocumentCache

memory/database

Datastore location for processed document data

DBConnectionStringName

<string>

The database connection string name. Valid when DocumentCache is set to “database”. Used only for ASP.NET web app. For ASP.NET Core the connection string is specified inside "ConnectionStrings" object.

DBCleanupRetentionTime

<Number of days>

Used when DocumentCache is set to “database”.

The number of days to retain a document’s processed data since the time the document was last viewed. The higher the value of the setting the better is the speed of loading of previously viewed documents. For example, if this value is set to 7 days, then any repeated viewing of a document within 7 days of the last viewing would result in a much faster loading of the document. However, a higher value of the setting will also mean more disk space is used by the database. Note that fractional days can be set using a real number.

DBCleanupIntervalTime

<Number of days>

Used when DocumentCache is set to “database”.

The interval time, in number of days, when the database cleanup is done. You can set this to 1 so that the cleanup happens once a day, every day. Note that fractional days can be set using a real number.

MemoryCleanupRetentionTime

<Number of hours>

Used when DocumentCache is set to “memory”.

The number of hours that a document's data is stored in the memory. This should generally be set to the web application's session expiry time.