Closed (duplicate)
Project:
jStats
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2012 at 04:52 UTC
Updated:
29 Oct 2012 at 09:23 UTC
I am using Pressflow ( with Varnish + memchache + Cloudflare CDN activated), since jStat makes use of too much db access its a good candidate to use memory caching - so my (noob) question is does it uses memcache by default or does a bin needs to be created in settings.php for that.
My current relevant settings.php section is :
##########################
#
# Mercury Settings
#
# Alter With Caution :)
#
##########################
# Varnish reverse proxy on localhost
$conf['reverse_proxy'] = TRUE;
$conf['reverse_proxy_addresses'] = array('127.0.0.1');
# Memcached configuration
$conf['cache_inc'] = './sites/all/modules/memcache/memcache.inc';
$conf['memcache_servers'] = array(
'127.0.0.1:11211' => 'default',
);
### END Mercury settings written on 2011-11-01T07:12:49-04:00
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
##########################
##########################
Comments
Comment #1
DeFr commentedActually, in its current architecture, jStats is not a good candidate for memory caching. The data of the {jstats_accesslog} table must contain the log of all the entries of the last 48h (by default, configurable) for the results to be meaningfull, and that data can't be recreated. This means that you can't flush your memcache server, ever, or you lose your "most viewed recently" blocks.
#1414220: Functionality from unreleased module statistics_js is the bug discussing (between various other things) a change in the architecture that would queue different entries in memcache, and populate the database table in a cron run, but it didn't result in a reviewable patch yet.