Mecha CMS

Helper functions.

cache

Short function for Cache::hit().

2.2.0Cache

cache(string $file, callable $fn);
cache(array $files, callable $fn);

Example:

cache('.\path\to\file.php', function($file) {
    return require $file;
});