Ejemplo n.º 1
0
function commentListGet()
{
    $cacheFile = new FileCache();
    $cacheFile->load('commentlist.json');
    if ($cacheFile->needUpdate()) {
        return commentListGenerate();
    } else {
        return json_decode($cacheFile->read());
    }
}
Ejemplo n.º 2
0
function penListGet()
{
    global $srkEnv;
    $listCache = new FileCache();
    $listCache->load('penlist.json');
    if ($listCache->needUpdate()) {
        return penListGenerate();
    } else {
        return json_decode($listCache->read());
    }
}