/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: 2019-02-22 17:52:45 UTC
  • Revision ID: csa@suren.me-20190222175245-fpp327t7p200dqos
Update cache overview in the administrative interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
                        if ((is_array($req->srv['database']))&&(!in_array($db, $req->srv['database'])))
270
270
                            $info['wildcarded'] = true;
271
271
                        
272
 
                        if ($req) {
273
 
                            $group_list = $reader->GetGroupList();
 
272
                        if ($req) {
 
273
                                    // Slows down considerably on big installations
 
274
                            if ($flags&REQUEST::NEED_READERINFO)
 
275
                                $group_list = $reader->GetGroupInfo(NULL, REQUEST::NEED_INFO|REQUEST::NEED_COUNT);
 
276
                            else
 
277
                                $group_list = $reader->GetGroupInfo();
 
278
                                
274
279
                            if (isset($group_list[$group])) {
275
 
                                $info['group'] = $group_list[$group]['name'];
 
280
                                $ginfo = &$group_list[$group];
 
281
                                $info['group'] = $ginfo['name'];
 
282
                                if (isset($ginfo['first'])) $info['first'] = $ginfo['first'];
 
283
                                if (isset($ginfo['last'])) $info['last'] = $ginfo['last'];
 
284
                                if (isset($ginfo['records'])) $info['last'] = $ginfo['records'];
276
285
                            } else {
277
286
                                $req = false;
278
287
                            }