Local File Caching

External storages may affect performance when requesting files, thus it is recommended to use a local file caching mechanism.

Each storage strategy allows for enabling of local file caching. A general overview of the caching mechanism is shown in the picture below:

The idea of caching files locally is described below:

  1. User is uploading data:

    1. Data stream is locally cached as file on the local file system

    2. Data stream is sent to configured storage through storage strategy

  2. User is requesting for data:

    1. Local cache is requested for the data

      • If file exist, then stream is sent to the user

      • If file doesn't exist, then external storage is requested for the data that is cached locally and sent as stream to the user