Jump to content



Member Since 12 Jun 2017
Offline Last Active Nov 26 2020 10:34 AM

Posts I've Made

In Topic: Redis Configuration Issues -

25 November 2020 - 11:10 AM



I am trying to test redis on my site but am running into problems. I get the error "Fatal error: Uncaught RedisException: Connection refused"


In local_config.php (this is on a test site) i have added:


// Storage backend for sessions. Available backends: database, redis
$config['session_backend'] = 'redis';
$config['session_redis_server'] = 'localhost';
$config['cache_apc_global_ttl'] = 0;
$config['cache_xcache_global_ttl'] = 0;

// Set to unique store prefix if you use the same Redis/Xcache/Apc storage
// for serveral cart installations
$config['store_prefix'] = 'pdx';


I have multiple store domains on the server pointing to one database. I'm not quite sure how the store_prefix config setting should be setup. I can see redis listed when i check my phpinfo file so i guess it is setup ok.


What could be causing the connection to be refused?

In Topic: Sort By Bestselling

23 October 2020 - 01:36 PM

This is a great little hack. I've changed it slightly to work on my On Sale page with the following code:

elseif ($mode == 'on_sale') {
        $title = __('on_sale');
        $params['on_sale'] = true;

	$params ['sort_by'] = "popularity";
        $params ['sort_order'] = "desc";

Although this displays how i want if i select a different sort option from the dropdown e.g. Sort Alphabetically the products aren't resorted.


Do you know why this might be?


I've tried the original code on the Bestsellers page and the same behavior happens.