예제 #1
0
파일: comment.php 프로젝트: laekov/shiruku
function commentListGet()
{
    $cacheFile = new FileCache();
    $cacheFile->load('commentlist.json');
    if ($cacheFile->needUpdate()) {
        return commentListGenerate();
    } else {
        return json_decode($cacheFile->read());
    }
}
예제 #2
0
파일: pen.php 프로젝트: laekov/shiruku
function penListGet()
{
    global $srkEnv;
    $listCache = new FileCache();
    $listCache->load('penlist.json');
    if ($listCache->needUpdate()) {
        return penListGenerate();
    } else {
        return json_decode($listCache->read());
    }
}