User Tools

Site Tools


php:myprojects:microcache

Table of Contents

Micro Cache

Micro Cache is a fast and simple file caching system for PHP (min 8.1). It uses a combination of file cache and memoization (since it also includes the POST request array by default).

Instead of processing the whole page request over and over again a cached response of a REQUEST_URI is loaded if it exists, is younger than a defined age, and younger than a given trigger file and the called PHP file (SCRIPT_FILENAME) itself.

Advantages

  • Extremely simple, minimalistic and robust
  • Very easy to use, with a few custom options
  • No dependencies
  • Request URIs can be hashed with different algorithms
php/myprojects/microcache.txt · Last modified: 2024-02-19 10:49 by admin