Views:

Question:
How do I enable Platform Temp File Delete functionality in DocuWare versions 7.11 and higher?

Solution:
The new delete functionality represents a more efficient way of handling files, with no access denied exceptions in normal circumstances, fewer file downloads from ContentServer, no leaking files in the temp folder, and clean logs. However, as part of breaking changes in DocuWare version 7.11 On-Premises, there were changes made in Platform Service configuration files. To accomplish this, the configuration file must be adapted as Web.config is no longer the main Platform configuration file. Most of the configurations are moved to the DocuWare.Platform.Web.dll.config.

How does it work?
The platform downloads a file just once and counts how many users are using it. When they reach zero, the file is marked for deletion. Through a predefined time, the platform checks the files marked for deletion and deletes them.

User-defined settings:
There is a possibility for some of the settings to be modified through the DocuWare.Platform.Web.dll.config found through the following file path: C:\Pogram Files\DocuWare\Web\Platform
Note: Please make a copy of the DocuWare.Platform.Web.dll.config file for backup purposes.
Next, the section has to be defined in configuration/configSections:

1<section name="ReferenceCounterConfig" type="DocuWare.Platform.Implementation.ReferenceCounting.ReferenceCounterConfiguration, DocuWare.PlatformImplementation" />

Then the section has to be added in the following format:

1<ReferenceCounterConfig intervalToStayAlive="00:10:00" intervalForDeleting="00:05:30" triesToDelete="5" triesToLock="3" intervalBetweenTwoTriesToLock="300">2 </ReferenceCounterConfig>

There are five properties that could be modified:

Property name

Type

Default Value

Min Value

Description

Interval to Stay Alive

Timespan

00:10:00

00:00:30

Time interval defines how long the file is to stay in the Temp folder and not be deleted.

Interval For Deleting

Timespan

00:05:30

00:00:30

Time interval which defines how often the platform will check for files that are not used anymore and have stayed alive more than the time specified by the Interval to Stay Alive property.

Tries to Delete

Int

3

2

Defines how many times the platform tries to delete a released file. If the file is locked by another process/user and after the last try the file is not deleted – then the file will stay in a temp folder.

Tries to Lock

Int

3

1

Defines how many additional attempts the platform has to try to lock a file.

Interval Between Two Tries to Lock

Int

200

50

Time interval defines how often the platform tries to lock a file. The interval is measured in milliseconds.

KBA is applicable to On-premise Organizations ONLY!