How to Calculate Cache Hits for "Mod_Disk_Cache"

Mod_Disk_Cache is an Apache HTTP Server command that caches elements of your page. This means that, when a user returns to a page after having loaded it previously, certain page elements will remain on his or her hard disk. They can be loaded quicker this way. To check how often users are using their caches to load page elements, you need to calculate cache hits. This can be done automatically once you enable the correct setting.

Instructions

    • 1

      Open your Apache command line.

    • 2

      Type the following and hit Enter: UseCanonicalName On. This enables cache recording (among other cache-optimizing tools).

    • 3

      Wait for a while to let the log record cache hits. Depending on how often your Apache page is accessed, this could be anywhere from a couple hours to a couple days. You need the Mod_Disk_Cache to record enough data to be meaningful.

    • 4

      Open the file “cache.log.” By default, it will be in the main Apache folder on your server. This file displays the results of your cache calculations, showing how many cache hits you had over time.

Related Searches:

References

Comments

Related Ads

Featured