Piwik and memcached

The main purpose is to load faster our heavy loaded piwik site. The latest version of piwik have memcached lib installed ,so we need to tell the piwik to use it.
Of course we need memcached server installed and running and php5-memcache package.
First , need to create file named bootstrap.php in piwik htdocs dir .After that put this on the file :

< ?php
ini_set('session.save_handler', 'memcache');
ini_set('session.save_path', 'tcp://server:port?persistent=1&weight=1&timeout=1&retry_interval=15');

That’s it!

Based on piwik forum

Сподели чрез...