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