Index: trunk/phase3/includes/BagOStuff.php |
— | — | @@ -349,7 +349,7 @@ |
350 | 350 | |
351 | 351 | public function keys() { |
352 | 352 | $db = $this->getDB(); |
353 | | - $res = $db->select( 'objectcache', array( 'keyname' ), false, __METHOD__ ); |
| 353 | + $res = $db->select( 'objectcache', array( 'keyname' ), false, __METHOD__ ); |
354 | 354 | $result = array(); |
355 | 355 | foreach ( $res as $row ) { |
356 | 356 | $result[] = $row->keyname; |
— | — | @@ -528,6 +528,16 @@ |
529 | 529 | apc_delete( $key ); |
530 | 530 | return true; |
531 | 531 | } |
| 532 | + |
| 533 | + public function keys() { |
| 534 | + $info = apc_cache_info( 'user' ); |
| 535 | + $list = $info['cache_list']; |
| 536 | + $keys = array(); |
| 537 | + foreach( $list as $entry ) { |
| 538 | + $keys[] = $entry['info']; |
| 539 | + } |
| 540 | + return $keys; |
| 541 | + } |
532 | 542 | } |
533 | 543 | |
534 | 544 | |