Advanced Configuration Guide

automatically after the effective time. The default value is 30 days.
The min value is 1.
Cache storage path
The path of cache. (Content database of SharePoint).
To manage the cache of WebPDF Reader more easily, it is better to
make the cache of WebPDF Reader independent to other content
in the database. So you have to create an individual content
database, and make sure it just includes one website collection.
And then configure WebPDF Reader to use this database.
Job timer
Foxit WebPDF Reader includes 2 job timers. You can configure the
timers in Central Administration.
Job timer
Timer name
Note
FoxitWebReaderCache
CreateJob
Make sure each SharePoint Web application activated with Foxit
WebPDF Reader for SharePoint is connected to Foxit WebPDF
Reader for SharePoint cache to be stored.
The timer will start every 5 minutes in default setting.
FoxitWebReaderCache
ExpirationJob
Set the older files to be expired. Make sure there is some free
space in Foxit WebPDF Reader for SharePoint cache.
The timer will start daily in default setting.
You can also use PowerShell to set and get the configuration of Foxit WebPDF Reader for
SharePoint Cache.
Set the storage size and effective time of Cache.
In this case, the storage size is 200GB, and effective time is 30 days.
Create a txt file and then copy and paste below the script to the txt:
$200gbInBytes = 1024 * 1024 * 1024 * 200
Get-SPWebApplication | Set-SPFoxitWebReaderCacheExpiration CacheExpirationPeriodInDays 30
Get-SPWebApplication | Set-SPFoxitWebReaderCacheMaxSize MaxCacheSizeInBytes $200gbInBytes
Note: CacheExpirationPeriodInDays is the effective time of the Cache (day);
MaxCacheSizeInBytes is the storage size of the Cache (byte).
Use .ps1 as the extension name and save this file in the folder the script is running from
(C:\scripts by default).
Input below command to the Windows PowerShell, and then press Enter:
C:\<path>\<filename>.ps1
Get webapp first and then set the cache storage size and effective time by the following
commands.
$webapp = Get-SPWebApplication
Set-SPFoxitWebReaderCacheExpiration WebApplication $webapp CacheExpirationPeriodInDays 30
Set-SPFoxitWebReaderCacheMaxSize WebApplication $webapp MaxCacheSizeInBytes $200gbInBytes