D
D
Dimmduh2015-09-18 06:24:41
Yii
Dimmduh, 2015-09-18 06:24:41

Why does memcached's total_connections grow when used in Yii 1?

I use nginx + php5-fpm
memcache + yii
In memchached statistics, total_connections is constantly growing with each request.
Persistent connections are enabled in yii. All configs are default.

'cache'=>array(
            'class'=>'system.caching.CMemCache',
            'servers'=>array(
                array('host'=>'127.0.0.1', 'port'=>11211),
            ),
        ),

I understand that every time a new connection is created. How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimmduh, 2015-09-18
@Dimmduh

Omg. Sometimes the solution comes after you ask the question.
I wound up the counter myself using
to view statistics.
Better fit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question