File inc/state.inc.php changed (mode: 100644) (index e35035c..a1dfe6a) |
... |
... |
function rg_state_get($db, $var) |
78 |
78 |
$v = $row['var']; |
$v = $row['var']; |
79 |
79 |
$rows[$v] = $row['value']; |
$rows[$v] = $row['value']; |
80 |
80 |
} |
} |
81 |
|
rg_cache_set('state', $rows, RG_SOCKET_NO_WAIT); |
|
82 |
|
rg_cache_set($k, 2, RG_SOCKET_NO_WAIT); |
|
|
81 |
|
$r = rg_cache_set('state', $rows, RG_SOCKET_NO_WAIT); |
|
82 |
|
if ($r !== FALSE) |
|
83 |
|
rg_cache_set($k, 2, RG_SOCKET_NO_WAIT); |
83 |
84 |
|
|
84 |
85 |
if (isset($rows[$var])) |
if (isset($rows[$var])) |
85 |
86 |
$ret = $rows[$var]; |
$ret = $rows[$var]; |