/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to classes/cache/cachedb.php

  • Committer: Suren A. Chilingaryan
  • Date: 2018-04-13 03:34:06 UTC
  • Revision ID: csa@suren.me-20180413033406-2g0diz65icnnruw8
Fix Active/InActive resolution in cache listings

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
                    if ($reader->server['disconnected'])
250
250
                        $info['disconnected'] = true;
251
251
 
252
 
                    $db_list = $reader->GetDatabaseList();
 
252
                    $db_list = $reader->GetDatabaseList(REQUEST::LIST_WILDCARDED);
253
253
                    if (isset($db_list[$db])) {
254
254
                        $info['database'] = $db_list[$db]['name'];
 
255
                        if ((is_array($req->srv['database']))&&(!in_array($db, $req->srv['database'])))
 
256
                            $info['wildcarded'] = true;
255
257
                        
256
258
                        if ($req) {
257
259
                            $group_list = $reader->GetGroupList();
373
375
 function GetCacheList($flags = 0) {
374
376
    $list = array();
375
377
 
 
378
 
376
379
    if ($flags&CACHEDB::TABLE_INFO)
377
380
        $res = @mysql_query("SHOW TABLE STATUS LIKE 'cache0\\_\\_%'", $this->dbh);
378
381
    else
379
382
        $res = @mysql_query("SHOW TABLES LIKE 'cache0\\_\\_%'", $this->dbh);
380
 
    
 
383
 
 
384
/*
 
385
    $res = @mysql_query("SHOW TABLES LIKE 'cache0\\_\\_aircoils%'", $this->dbh);
 
386
    $flags = $flags&~CACHE::FIND_BROKEN;
 
387
*/
 
388
 
381
389
    $postfixes = array();
382
390
    
383
391
    while ($row = mysql_fetch_row($res)) {