15 require
'../../../_src/_config.php';
18 $tx =
'cache attive: ' . PHP_EOL;
21 if( function_exists(
'opcache_get_configuration' ) ) {
22 $tx .=
'OPCache attivo' . PHP_EOL;
23 $tx .= print_r( opcache_get_configuration(),
true );
24 $tx .= print_r( opcache_get_status(),
true );
26 $tx .=
'OPCache non attivo' . PHP_EOL;
30 if( ! empty(
$cf[
'memcache'][
'connection'] ) ) {
31 $st = memcache_get_stats(
$cf[
'memcache'][
'connection'] );
33 $tx .=
'Memcache attivo' . PHP_EOL;
34 $tx .= print_r(
$cf[
'memcache'],
true );
35 $tx .=
'test di lettura: ' .
memcacheRead(
$cf[
'memcache'][
'connection'],
'test' ) . PHP_EOL;
36 $tx .= print_r(
$st,
true );
38 $tx .= sprintf(
'%01.2f',
$st[
'bytes'] * 100 /
$st[
'limit_maxbytes'] ) .
'% in uso' . PHP_EOL;
39 $tx .=
'trovati ' .
$st[
'get_hits'] .
' oggetti contro ' .
$st[
'get_misses'] .
' non trovati' . PHP_EOL;
40 $tx .= sprintf(
'%01.2f',
$st[
'get_hits'] * 100 /
$st[
'cmd_get'] ) .
'% trovati' . PHP_EOL;
42 $tx .=
'Memcache non attivo' . PHP_EOL;
$cf['ricerca']['template']