예제 #1
0
파일: func.php 프로젝트: jotttt/auth
/**
 * Write cache
 */
function wcache($i, $n, $o)
{
    $c = new FILE();
    $fn = CACHE_DIR . SLASH . strtolower($i) . '_' . $n;
    if ($c->open($fn, 'w')) {
        $c->write(json_encode($o));
        $c->close();
        return true;
    }
    return false;
}