|
Directory Cleanup |
The default SystemAuditNormal method can be configured to automatically purge temporary files that the system uses.
The method first retrieves the ServerMonitor-RunViewDirCleanup setting from the web.config file to determine if the method will execute the audit.
string strRunOption = ConfigurationManager.AppSettings["ServerMonitor-RunViewDirCleanup"];
If this option is set to "1" or "yes" the method will perform the audit.
From the Web.config file:
<configuration>
<appSettings>
<add key="ServerMonitor-RunViewDirCleanup" value="yes"/>
<add key="ServerMonitor-CleanupFolders" value="C:\Inetpub\wwwroot\Omnify5\VaultView"/>
</appSettings>
If the method executes the audit, the method will then retrieve the ServerMonitor-CleanupFolders
setting to determine which server/system folders to purge. You can specify multiple folders by using a semicolon delimiter.
Note: For the Directory Cleanup web services to be executed automatically, you will need to enable the Omnify Server Monitor Windows Service application.
Refer to the Windows Service section for more information on enabling the Omnify Server Monitor.
|
|