BB_Cache

The BuddyPress BB Cache class.

Defined (1)

The class is defined in the following location(s).

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. class BB_Cache { 
  2. var $use_cache = false; 
  3. var $flush_freq = 100; 
  4. var $flush_time = 172800; // 2 days 
  5.  
  6. function get_user( $user_id, $use_cache = true ) { 
  7. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_get_user'); 
  8. return bb_get_user( $user_id ); 
  9.  
  10. function append_current_user_meta( $user ) { 
  11. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_append_meta'); 
  12. return bb_append_meta( $user, 'user' ); 
  13.  
  14. function append_user_meta( $user ) { 
  15. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_append_meta'); 
  16. return bb_append_meta( $user, 'user' ); 
  17.  
  18. // NOT bbdb::prepared 
  19. function cache_users( $ids, $use_cache = true ) { 
  20. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_cache_users'); 
  21. return bb_cache_users( $ids ); 
  22.  
  23. // NOT bbdb::prepared 
  24. function get_topic( $topic_id, $use_cache = true ) { 
  25. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'get_topic'); 
  26. return get_topic( $topic_id, $use_cache ); 
  27.  
  28. // NOT bbdb::prepared 
  29. function get_thread( $topic_id, $page = 1, $reverse = 0 ) { 
  30. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'get_thread'); 
  31. return get_thread( $topic_id, $page, $reverse ); 
  32.  
  33. // NOT bbdb::prepared 
  34. function cache_posts( $query ) { // soft cache 
  35. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_cache_posts'); 
  36. return bb_cache_posts( $query ); 
  37.  
  38. // NOT bbdb::prepared 
  39. function get_forums() { 
  40. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_get_forums'); 
  41. return bb_get_forums(); 
  42.  
  43. function get_forum( $forum_id ) { 
  44. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_get_forum'); 
  45. return bb_get_forum( $forum_id ); 
  46.  
  47. function read_cache($file) { 
  48. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  49. return false; 
  50.  
  51. function write_cache($file, $data) { 
  52. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  53. return false; 
  54.  
  55. function flush_one( $type, $id = false, $page = 0 ) { 
  56. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  57. return true; 
  58.  
  59. function flush_many( $type, $id, $start = 0 ) { 
  60. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  61. return true; 
  62.  
  63. function flush_old() { 
  64. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  65. return true; 
  66.  
  67. function flush_all() { 
  68. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  69. return true; 
  70.