Ejemplo n.º 1
0
Archivo: func.php Proyecto: 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;
}