Cache

In this tab, you can configure caching settings for Proxy Server. Proxy Server has two types of cache, disk cache and memory cache. Both cache types can be configured independently.

To configure disk caching:

  1. First, select from Location which volume you want to store your cached data at. Then enter how much space you want to allocate for the cache directory in gigabytes. If you want to delete all data from the cache directory, click Clean Disk Cache.
  2. Next, determine what size files will be cached by Proxy Server. In Minimum file size for disk cache enter a value in kilobytes. Files smaller than this size will not be cached.
  3. In Maximum file size for disk cache enter another value in kilobytes. Files larger than this size will not be cached.
  4. Next, determine how often cached content will be replaced. In Cache swap floor enter another value in terms of cache space percentage. Proxy server will use this as a threshold for deleting older cache files. Please see the next step for more details.
  5. In Cache swap ceiling enter a value in terms of cache space percentage. Once cache storage reaches this percentage, Proxy Server will delete older cache files until Cache swap floor is met.
  6. Once you have finished, click Apply to save your disk cache settings.

Note:

  • Only nonzero positive whole numbers are valid for Location size.
  • The maximum value that can be entered for Minimum file size for disk cache is 2048 kilobytes and only non-negative integers are valid. In addition, this value cannot be greater than the value you enter for Maximum file size for disk cache.
  • The minimum value that can be entered for Maximum file size for disk cache is 8 kilobytes and only nonzero positive whole numbers are valid. In addition, this value cannot be less than the value you enter for Minimum file size for disk cache nor can it be greater than the Location size.
  • Cache swap floor and Cache swap ceiling only apply for disk cache. The closer these values are, the fewer older cache files will be replaced.

To configure memory cache:

  1. In Cache memory size enter a value in megabytes. This value is the additional memory Proxy Server will use as a memory cache. The total usage of memory for Proxy Server is determined by: 10 * (Cache Directory size per gigabyte) + 15 + (Cache memory size). You are highly recommended to determine the memory size of your Synology NAS before setting this parameter.
  2. In Maximum file size for memory cache enter a value in kilobytes. Objects larger than this size will not be saved in memory cache.

Note:

  • Maximum file size for memory cache cannot be larger than the memory size of your Synology NAS.