Chapter 5. Cache

Table of Contents

1. Displaying Files in Cache
2. Cache and File Flushing

1. Displaying Files in Cache

The last bifernoadmin section deals with the application cache. The Biferno cache mechanism is explained in "Biferno: Language Guide". “Cache” is useful only if the CACHE application variable is set to true, i.e. if the cache is active. When this is the case, “Cache” lists all files contained in the application cache, as in the following figure.

Figure 5.1. Cache

Cache

This screen shows the total number of files (“Total pages in Cache”) and the total size of all files in cache (“Cache total size”, expresses in Kilobytes). There is also some more information on the files in cache that can be displayed and sorted in ascending or descending order. The following data can be visualized:

  • Current Users: The number of users that are currently running the script

  • Hits: How many times the script has been run

  • Last Access: The date of the last execution of the script

  • Last (ms): The execution time (in milliseconds) required by the script for its last run

  • Max (ms): The maximum execution time (in milliseconds) required by the script

  • Min (ms): The minimum execution time (in milliseconds) required by the script

  • Average (ms): The average execution time (in milliseconds) required by the script

  • Total (ms): The total execution time (in milliseconds) required by all executions of the script

Note

All the above measures are relative to the time interval between the last reload or flush of the application and the time of the query. Rather than as statistics, they should be regarded as a snapshot of the recent behavior of the application.

Detailed information on the measures for a given file can be displayed by clicking on the file name. This brings up a window with data relative to that file only.

Figure 5.2. Cache: Data Relative to a Single File

Cache: Data Relative to a Single File

2. Cache and File Flushing

The entire cache can be flushed clicking on the “Flush All” button. This operation is similar to the one described in Section 3, “Cache Reload and Flush”.

Individual files can be flushed from the cache by checking the button in the “Flush” column (see Figure 5.1, “Cache”) and clicking on the “Flush Checked” button.