FileCache

Usage #

This will store computed results using file system. There is no further installation needed if you use FileCache.

To enable this cache, you do:

<?php

class MyReport extends \koolreport\KoolReport
{
    use \koolreport\cache\FileCache;

    function cacheSettings()
    {
        return array(
            "ttl"=>60,
        );
    }
    ...
}

The "ttl" means Time To Live which is the time cache will store the result.