ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Ignore:
Timestamp:
Aug 25, 2006, 2:29:26 AM (15 years ago)
Author:
ogawa
Message:

function cache に対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/pc/page/h_ranking.php

    r2 r62  
    2323        switch ($kind) {
    2424        case "friend":
    25             $list = p_h_ranking_c_friend_ranking($limit);
     25            $list = pne_cache_call(3600, 'p_h_ranking_c_friend_ranking', $limit);
    2626            foreach ($list as $key => $value) {
    2727                $list[$key]['c_member'] = db_common_c_member_with_profile($value['c_member_id']);
     
    2929            break;
    3030        case "com_member":
    31             $list = p_h_ranking_c_commu_member_ranking($limit);
     31            $list = pne_cache_call(3600, 'p_h_ranking_c_commu_member_ranking', $limit);
    3232            foreach ($list as $key => $value) {
    3333                $list[$key]['c_commu'] = _db_c_commu4c_commu_id($value['c_commu_id']);
     
    3535            break;
    3636        case "com_comment":
    37             $list = p_h_ranking_c_commu_topic_comment_ranking($limit);
     37            $list = pne_cache_call(3600, 'p_h_ranking_c_commu_topic_comment_ranking', $limit);
    3838            foreach ($list as $key => $value) {
    3939                $list[$key]['c_commu'] = _db_c_commu4c_commu_id($value['c_commu_id']);
     
    4242        case "ashiato":
    4343        default:
    44             $list = p_h_ranking_c_ashiato_ranking($limit);
     44            $list = pne_cache_call(3600, 'p_h_ranking_c_ashiato_ranking', $limit);
    4545            foreach ($list as $key => $value) {
    4646                $list[$key]['c_member'] = db_common_c_member_with_profile($value['c_member_id']);
Note: See TracChangeset for help on using the changeset viewer.