/
Configure HostBill to use Redis for caching

Configure HostBill to use Redis for caching

By default HostBill uses file system to store its cache data. Primary use of cache in HostBill is performance/reduced page load times. If you plan to use HostBill in HA (High-availability) setup, you may want to consider using Redis as your cache driver in HostBill. 

This guide assumes that:

  • Redis is already installed, configured and running
  • php pecl redis extension is installed


In your HostBill's includes/config.php file add following lines to bottom of file contents:

//...

$config['HBCache.Driver']='redis';  // we're letting HostBill know we'll use redis for cache ...

//for tcp:
$config['HBCache.Redis.host']='127.0.0.1'; // ... running on 127.0.0.1 ...
$config['HBCache.Redis.port']=6379; // ... on port 6379

//or, for unix socket:
$config['HBCache.Redis.socket']='/var/run/redis.sock'; 




Related content

System requirements
System requirements
More like this
Remove clients, accounts, domains but leave settings & products
Remove clients, accounts, domains but leave settings & products
Read with this
Configure HostBill to use Memcached for caching
Configure HostBill to use Memcached for caching
More like this
How to force https in HostBill
How to force https in HostBill
Read with this
Using native PHP mysql functions in HostBill
Using native PHP mysql functions in HostBill
More like this
Product Configuration: Create N-days free trial
Product Configuration: Create N-days free trial
Read with this