mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update caches.php
This commit is contained in:
parent
cd6914773f
commit
67a7d8b50d
@ -48,6 +48,19 @@ class CACHES
|
|||||||
$this->ref[$cache_name] =& $this->obj[$cache_name];
|
$this->ref[$cache_name] =& $this->obj[$cache_name];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'db_sqlite': // Unused!!!
|
||||||
|
if (!isset($this->obj[$cache_name]))
|
||||||
|
{
|
||||||
|
$cache_cfg['pconnect'] = $this->cfg['pconnect'];
|
||||||
|
$cache_cfg['db_file_path'] = $this->get_db_path($cache_name, $cache_cfg, '.sqlite.db');
|
||||||
|
$cache_cfg['table_name'] = $cache_name;
|
||||||
|
$cache_cfg['table_schema'] = $this->get_table_schema($cache_cfg);
|
||||||
|
|
||||||
|
$this->obj[$cache_name] = new sqlite_common($cache_cfg);
|
||||||
|
}
|
||||||
|
$this->ref[$cache_name] =& $this->obj[$cache_name];
|
||||||
|
break;
|
||||||
|
|
||||||
case 'redis':
|
case 'redis':
|
||||||
if (!isset($this->obj[$cache_name]))
|
if (!isset($this->obj[$cache_name]))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user