Добрый день,
ubuntu 16.04 php7 apache2 mysql5.7
Установил расширение memcache, все вроде встало нормально.
Сделал настройки, добавил в конфиг
define('OSC_CACHE', 'memcache');
$_cache_config[] = array(
'default_host' => '127.0.0.1',
'default_port' => 11211,
'default_weight' => 1
);
Проверяю командой "echo stats | nc 127.0.0.1 11211"
Результат:
STAT pid 17766
STAT uptime 6066
STAT time 1501152491
STAT version 1.4.25 Ubuntu
STAT libevent 2.0.21-stable
STAT pointer_size 64
STAT rusage_user 0.140000
STAT rusage_system 0.116000
STAT curr_connections 5
STAT total_connections 27
STAT connection_structures 6
STAT reserved_fds 20
STAT cmd_get 0
STAT cmd_set 0
STAT cmd_flush 1
STAT cmd_touch 0
STAT get_hits 0
STAT get_misses 0
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT touch_hits 0
STAT touch_misses 0
STAT auth_cmds 0
STAT auth_errors 0
STAT bytes_read 189
STAT bytes_written 21414
STAT limit_maxbytes 268435456
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT time_in_listen_disabled_us 0
STAT threads 4
STAT conn_yields 0
STAT hash_power_level 16
STAT hash_bytes 524288
STAT hash_is_expanding 0
STAT malloc_fails 0
STAT bytes 0
STAT curr_items 0
STAT total_items 0
STAT expired_unfetched 0
STAT evicted_unfetched 0
STAT evictions 0
STAT reclaimed 0
STAT crawler_reclaimed 0
STAT crawler_items_checked 0
STAT lrutail_reflocked 0
END
Но количество запросов к базе осталось прежним, помогите разобраться с настройкой кэша.