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

Changeset 585


Ignore:
Timestamp:
Nov 4, 2006, 11:29:29 PM (14 years ago)
Author:
ebihara
Message:

h_homeにfunction cacheを追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/modules/pc/page/h_home.php

    r102 r585  
    1616        $u = $GLOBALS['AUTH']->uid();
    1717
    18         $this->set('inc_navi', fetch_inc_navi('h'));
     18        $inc_navi = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'fetch_inc_navi', 'h');
     19        $this->set('inc_navi', $inc_navi);
    1920
    2021        /// infomation ///
     
    4950
    5051        // メンバ情報
    51         $this->set('c_member', db_common_c_member4c_member_id($u));
     52        $c_member = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_member4c_member_id', $u);
     53        $this->set('c_member', $c_member);
    5254        // フレンドリスト
    53         $this->set('c_friend_list', p_f_home_c_friend_list4c_member_id($u, 9));
     55        $c_friend_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_f_home_c_friend_list4c_member_id', $u, 9);
     56        $this->set('c_friend_list', $c_friend_list);
    5457        $this->set('c_friend_count', db_friend_count_friends($u));
    5558        // 参加コミュニティ
    56         $this->set('c_commu_user_list', p_h_home_c_commu_list4c_member_id($u, 9));
     59        $c_commu_user_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_commu_list4c_member_id', $u, 9);
     60        $this->set('c_commu_user_list', $c_commu_user_list);
    5761        $this->set('fh_com_count_user', p_common_count_c_commu4c_member_id($u));
    5862
     
    6064
    6165        // フレンド最新日記
    62         $this->set('c_diary_friend_list', p_h_home_c_diary_friend_list4c_member_id($u, 5));
     66        $c_diary_friend_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_diary_friend_list4c_member_id', $u, 5);
     67        $this->set('c_diary_friend_list', $c_diary_friend_list);
    6368        // フレンド最新blog
    6469        $this->set('c_rss_cache_list', p_h_diary_list_friend_c_rss_cache_list($u, 5));
    6570        // 日記コメント記入履歴
    66         $this->set('c_diary_my_comment_list', p_h_home_c_diary_my_comment_list4c_member_id($u, 5));
     71        $c_diary_my_comment_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_diary_my_comment_list4c_member_id', $u, 5);
     72        $this->set('c_diary_my_comment_list', $c_diary_my_comment_list);
    6773        // 参加コミュニティの新着書き込み
    6874        $this->set('c_commu_topic_comment_list', p_h_home_c_commu_topic_comment_list4c_member_id($u, 5));
     
    7379
    7480        // 日記
    75         $this->set('c_diary_list', db_diary_get_c_diary_list4c_member_id($u, 5));
     81        $c_diary_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_diary_get_c_diary_list4c_member_id', $u, 5);
     82        $this->set('c_diary_list', $c_diary_list);
    7683        // 外部blog
    7784        $this->set('c_blog_list', p_h_home_h_blog_list_friend4c_member_id($u, 5, 1));
     
    8289
    8390        // 紹介文
    84         $this->set('c_friend_intro_list', p_h_home_c_friend_intro_list4c_member_id($u, 5));
     91        $c_friend_intro_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_friend_intro_list4c_member_id', $u, 5);
     92        $this->set('c_friend_intro_list', $c_friend_intro_list);
    8593
    8694        // 今日の日付、曜日
     
    106114
    107115            //お気に入りのメンバ
    108             $this->set('bookmark_member_list', db_bookmark_member_list($u, 9));
     116            $bookmark_member_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_bookmark_member_list', $u, 9);
     117            $this->set('bookmark_member_list', $bookmark_member_list);
    109118            $this->set('bookmark_count', db_bookmark_count($u));
    110119        }
     
    134143            $m = $Day->thisMonth();
    135144            $d = $Day->thisDay();
     145            $birth = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_birth4c_member_id', $m, $d, $u);
    136146            $item = array(
    137147                'year'=> $y,
     
    140150                'dayofweek'=>$dayofweek[$i++],
    141151                'now' => false,
    142                 'birth' => p_h_home_birth4c_member_id($m, $d, $u),
     152                'birth' => $birth,
    143153                'event' => p_h_home_event4c_member_id($y, $m, $d, $u),
    144154                'schedule' => p_h_calendar_c_schedule_list4date($y, $m, $d, $u),
Note: See TracChangeset for help on using the changeset viewer.