I am using this last version, but it is no update for months (10.06.2016.)Also try updating phpredis too
I am saving via cron once at hour.Reducing how often you save to disk helps a lot
// Cache Start
// setup redis caching
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
'caching' => true,
'cache_id_prefix' => 'xfzf1_',
'lifetime' => 0
);
$config['cache']['backendOptions'] = array(
'server' => 'zetor-forum.de',
'port' => 6379,
);
// install Redis-aware XF Caching replacement. Will break in XF 2.0
require(XenForo_Application::getInstance()->getConfigDir().'/SV/RedisCache/Installer.php');
// $redis = XenForo_Application::getCache()->getBackend()->getCredis();
// Cache Ende
$config['cache']['backend'] = 'Redis';
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
'caching' => true,
'cache_id_prefix' => 'YOURPREFIX_',
'automatic_serialization' => false,
'lifetime' => 0
);
$config['cache']['backend'] = 'Redis';
$config['cache']['backendOptions'] = array(
'server' => '127.0.0.1',
'port' => 6379,
'connect_retries' => 2,
'use_lua' => true,
);
require(XenForo_Application::getInstance()->getConfigDir().'/SV/RedisCache/Installer.php');
https://github.com/phpredis/phpredis 's php7 branch is being actively updated, but I have no idea how stable it is.I am using this last version, but it is no update for months (10.06.2016.)
Is it still happening? This is often difficult to troubleshoot.I am saving via cron once at hour.
it has been for months, but this error show up for first time yesterday
Confused...
@Xon I think I need a hint.
Xenforo 1.5.11, php 5.6.27
PHP Info says:
View attachment 143393
Redis Server is runing, and I can ping / pong him (redis-cli).
(installed on Ubuntu 14.04.5 LTS after apt-get update and apt-get upgrade then with apt-get install redis-server)
Your addon is the latest version (1.1.14) and no error logs in xenforo to see.
Now Redis ON in config.php with:
PHP:// Cache Start // setup redis caching $config['cache']['enabled'] = true; $config['cache']['cacheSessions'] = true; $config['cache']['frontend'] = 'Core'; $config['cache']['frontendOptions'] = array( 'caching' => true, 'cache_id_prefix' => 'xfzf1_', 'lifetime' => 0 ); $config['cache']['backendOptions'] = array( 'server' => 'zetor-forum.de', 'port' => 6379, ); // install Redis-aware XF Caching replacement. Will break in XF 2.0 require(XenForo_Application::getInstance()->getConfigDir().'/SV/RedisCache/Installer.php'); // $redis = XenForo_Application::getCache()->getBackend()->getCredis(); // Cache Ende
In ACP it tells me:
View attachment 143386
But in frontend I have now interesting errors:
1.
View attachment 143387
instead bevore with Redis Cache OFF:
View attachment 143388
or 2.
View attachment 143389
instead bevore with Redis cache OFF:
View attachment 143390
A redis-cli FLUSHALL changes nothing...
Any Idea whats going wrong when I activate Redis Cache? What will I have forget? hmm...
$config['cache']['backend'] = 'Redis';
// setup redis caching
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
'caching' => true,
'cache_id_prefix' => 'xfzfde_',
'automatic_serialization' => false,
'lifetime' => 0
);
$config['cache']['backend'] = 'Redis';
$config['cache']['backendOptions'] = array(
'server' => '127.0.0.1',
'port' => 6379,
);
// install Redis-aware XF Caching replacement. Will break in XF 2.0
require(XenForo_Application::getInstance()->getConfigDir().'/SV/RedisCache/Installer.php');
I take a look at this xenforo with the errors above and my test installation on same server, same php version, same redis (other prefix), same browser and also with Kaspersky IS aktive (but blocked) without errors.There is likely an error in the outputed css files which gives some hint to this.
I pull redis PHP extension for PHP 7.x from official pecl downloads. As per this post, I choose pecel not githubhttps://github.com/phpredis/phpredis 's php7 branch is being actively updated, but I have no idea how stable it is.
Nop, just that night and never before nor after (knocking on wood)Is it still happening? This is often difficult to troubleshoot.
- Redis Sentinel support for high-availability. See http://redis.io/topics/sentinel for more information.
- Enable with:
Code:$config['cache']['backendOptions']['sentinel_master_set'] = 'mymaster'; $config['cache']['backendOptions']['server'] = '127.0.0.1:26379';
- 'server' now points to a comma delimited list of sentinal servers to find the master.
- 'mymaster' must match sentinel configuration.
- the port must be explicitly listed
- Attempt to reduce latency warnings or broken pipe due to timeouts.
- Tweak redis command usage to block less by fetching less data at once when invalidating css caches
- Track latest upstream libraries
Can you try disabling all other add-ons? Something is going very wrong, and it is hard to troubleshoot to any extend sorry
It would not directly help.Hi @Xon
Do you know please if your add-on will help solve the problem i'm having ?
https://xenforo.com/community/threads/please-help-sql-caching-optimization.123900/
Mehdi
This value is only populated when dealling with redis +3.0, 2.8 doesn't report those stats.Still nothing in To/From redis .. and site is active, should be some value there no?
This value is only populated when dealling with redis +3.0, 2.8 doesn't report those stats.
We use essential cookies to make this site work, and optional cookies to enhance your experience.