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

Changeset 658


Ignore:
Timestamp:
Nov 9, 2006, 9:44:36 PM (16 years ago)
Author:
ebihara
Message:

function cacheをする関数は再帰的にコールするようにした。

Location:
OpenPNE/branches/ebihara/prj_tuning_2_5/webapp
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/lib/db/bookmark.php

    r596 r658  
    141141function db_bookmark_member_list($c_member_id, $limit = 0)
    142142{
     143    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     144
     145    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     146        $is_recurred = true;
     147        $funcargs = func_get_args();
     148        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     149    }
     150
     151    $is_recurred = false;
     152
    143153    $sql = 'SELECT c_member_id_to AS c_member_id FROM c_bookmark' .
    144154            ' WHERE c_member_id_from = ? ORDER BY RAND()';
     
    181191{
    182192    //function cacheの削除
    183     pne_cache_drop('db_bookmark_member_list', $c_member_id_from, 9);
     193    cache_drop_c_bookmark($c_member_id_from);
    184194
    185195    $data = array(
     
    197207{
    198208    //function cacheの削除
    199     pne_cache_drop('db_bookmark_member_list', $c_member_id_from, 9);
     209    cache_drop_c_bookmark($c_member_from);
    200210
    201211    $sql = 'DELETE FROM c_bookmark' .
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/lib/db/commu.php

    r603 r658  
    3232function db_commu_c_commu4c_commu_id2($c_commu_id)
    3333{
     34    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     35
     36    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     37        $is_recurred = true;
     38        $funcargs = func_get_args();
     39        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     40    }
     41
     42    $is_recurred = false;
     43
    3444    if ($c_commu = _db_c_commu4c_commu_id($c_commu_id)) {
    3545        $c_commu['member_count'] = _db_count_c_commu_member_list4c_commu_id($c_commu_id);
     
    412422function db_commu_c_commu_member_list4c_commu_id($c_commu_id ,$limit = 9)
    413423{
     424    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     425
     426    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     427        $is_recurred = true;
     428        $funcargs = func_get_args();
     429        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     430    }
     431
     432    $is_recurred = false;
    414433    $sql = 'SELECT c_member.* FROM c_member, c_commu_member' .
    415434            ' WHERE c_member.c_member_id = c_commu_member.c_member_id' .
     
    426445function db_commu_new_topic_comment4c_commu_id($c_commu_id, $limit, $event_flag = 0)
    427446{
     447    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     448
     449    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     450        $is_recurred = true;
     451        $funcargs = func_get_args();
     452        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     453    }
     454
     455    $is_recurred = false;
     456
    428457    $sql = "SELECT cct.c_commu_topic_id , cct.name, MAX(cctc.r_datetime) as r_datetime , cct.c_commu_id " .
    429458            " , cctc.image_filename1, cctc.image_filename2, cctc.image_filename3 " .
     
    516545function db_commu_c_commu_list4c_member_id_2($c_member_id, $limit = 9)
    517546{
     547    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     548
     549    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     550        $is_recurred = true;
     551        $funcargs = func_get_args();
     552        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     553    }
     554
     555    $is_recurred = false;
     556
    518557    $sql = "SELECT c_commu.c_commu_id, c_commu.image_filename, c_commu.name" .
    519558        " FROM c_commu ,c_commu_member " .
     
    747786function db_commu_c_commu_list4c_member_id_3($c_member_id, $limit)
    748787{
     788    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     789
     790    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     791        $is_recurred = true;
     792        $funcargs = func_get_args();
     793        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     794    }
     795
     796    $is_recurred = false;
     797
    749798    $sql = "SELECT c.* FROM c_commu_member AS cm, c_commu AS c";
    750799    $sql .= " WHERE cm.c_member_id=?";
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/lib/db/diary.php

    r596 r658  
    6060function db_diary_get_c_diary_list4c_member_id($target_c_member_id, $count = 10, $u = null, $force = null)
    6161{
     62    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     63
     64    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     65        $is_recurred = true;
     66        $funcargs = func_get_args();
     67        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     68    }
     69
     70    $is_recurred = false;
     71
    6272    $pf_cond = db_diary_public_flag_condition($target_c_member_id, $u, $force);
    6373    $sql = 'SELECT * FROM c_diary WHERE c_member_id = ?' . $pf_cond .
     
    282292function p_h_home_c_diary_friend_list4c_member_id($c_member_id, $limit)
    283293{
     294    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     295
     296    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     297        $is_recurred = true;
     298        $funcargs = func_get_args();
     299        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     300    }
     301
     302    $is_recurred = false;
     303
    284304    $friends = db_friend_c_member_id_list($c_member_id, true);
    285305    $ids = implode(',', array_map('intval', $friends));
     
    310330function p_h_home_c_diary_my_comment_list4c_member_id($c_member_id, $limit)
    311331{
     332    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     333
     334    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     335        $is_recurred = true;
     336        $funcargs = func_get_args();
     337        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     338    }
     339
     340    $is_recurred = false;
     341
    312342    $date = date('Y-m-d 00:00:00', strtotime('-15 days'));
    313343
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/lib/db/etc.php

    r603 r658  
    429429{
    430430    //function cacheの削除
    431     pne_cache_drop('p_c_home_c_commu4c_commu_id', $c_commu_id);
     431    cache_drop_c_commu($c_commu_id);
    432432
    433433    $single = array(intval($c_commu_id));
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/lib/db/friend.php

    r603 r658  
    188188function db_friend_c_friend_comment4c_member_id($c_member_id, $limit = 5)
    189189{
     190    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     191
     192    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     193        $is_recurred = true;
     194        $funcargs = func_get_args();
     195        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     196    }
     197
     198    $is_recurred = false;
     199
    190200    $sql = "SELECT c_member_id_from AS c_member_id, intro FROM c_friend" .
    191201            " WHERE c_member_id_to = ? AND intro <> ''" .
     
    223233function db_friend_c_friend_list4c_member_id($c_member_id, $limit = 0)
    224234{
     235    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     236
     237    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     238        $is_recurred = true;
     239        $funcargs = func_get_args();
     240        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     241    }
     242
     243    $is_recurred = false;
     244
    225245    $sql = 'SELECT c_member_id_to AS c_member_id FROM c_friend' .
    226246            ' WHERE c_member_id_from = ? ORDER BY RAND()';
     
    299319function db_friend_c_friend_intro_list4c_member_id($c_member_id, $limit)
    300320{
     321    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     322
     323    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     324        $is_recurred = true;
     325        $funcargs = func_get_args();
     326        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     327    }
     328
     329    $is_recurred = false;
     330
    301331    $sql = 'SELECT * FROM c_friend' .
    302332            ' WHERE c_member_id_to = ? AND intro <> \'\' ORDER BY RAND()';
     
    666696{
    667697    //function cacheを削除
    668     pne_cache_drop('p_h_home_c_friend_intro_list4c_member_id', $c_member_id_to, 5);
    669     pne_cache_drop('p_f_home_c_friend_comment4c_member_id', $c_member_id_to);
     698    cache_drop_c_friend_intro($c_member_id_to);
    670699
    671700    $data = array(
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/lib/db/member.php

    r597 r658  
    1616function db_member_c_member4c_member_id($c_member_id, $is_secure = false, $with_profile = false, $public_flag = 'public')
    1717{
     18    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     19
     20    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     21        $is_recurred = true;
     22        $funcargs = func_get_args();
     23        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     24    }
     25
     26    $is_recurred = false;
     27
    1828    $sql = 'SELECT * FROM c_member WHERE c_member_id = ?';
    1929    $params = array(intval($c_member_id));
     
    412422function db_member_birth4c_member_id($month, $day, $c_member_id)
    413423{
     424    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     425
     426    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     427        $is_recurred = true;
     428        $funcargs = func_get_args();
     429        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     430    }
     431
     432    $is_recurred = false;
     433
     434
    414435    $sql = "SELECT c_member_id_to FROM c_friend WHERE c_member_id_from = ?";
    415436    $params = array(intval($c_member_id));
     
    454475function db_member_c_profile_list()
    455476{
     477    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     478
     479    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     480        $is_recurred = true;
     481        $funcargs = func_get_args();
     482        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     483    }
     484
     485    $is_recurred = false;
     486
    456487    $list = db_member_c_profile_list4null();
    457488
     
    786817{
    787818    //function cacheの削除
    788     pne_cache_drop('db_common_c_member4c_member_id', $c_member_id);
    789     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend');
    790     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public');
     819    cache_drop_c_member_profile($c_member_id);
    791820
    792821    $data = array(
     
    819848{
    820849    //function cacheの削除
    821     pne_cache_drop('db_common_c_member4c_member_id', $c_member_id);
    822     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend');
    823     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public');
     850    cache_drop_c_member_profile($c_member_id);
    824851
    825852    $data = array('image_filename_'.intval($img_num) => $image_filename);
     
    834861{
    835862    //function cacheの削除
    836     pne_cache_drop('db_common_c_member4c_member_id', $c_member_id);
    837     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend');
    838     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public');
     863    cache_drop_c_member_profile($c_member_id);
    839864
    840865    $sql = 'UPDATE c_member SET';
     
    857882{
    858883    //function cacheの削除
    859     pne_cache_drop('db_common_c_member4c_member_id', $c_member_id);
    860     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend');
    861     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public');
     884    cache_drop_c_member_profile($c_member_id);
    862885
    863886    $sql = 'UPDATE c_member SET image_filename = image_filename_'.intval($img_num).
     
    873896{
    874897    //function cacheの削除
    875     pne_cache_drop('db_common_c_member4c_member_id', $c_member_id);
    876     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend');
    877     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public');
     898    cache_drop_c_member_profile($c_member_id);
    878899
    879900    $data = array(
     
    905926
    906927    //function cacheの削除
    907     pne_cache_drop('db_common_c_member4c_member_id', $c_member_id);
    908     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'friend');
    909     pne_cache_drop('db_common_c_member_with_profile', $c_member_id, 'public');
     928    cache_drop_c_member_profile($c_member_id);
    910929
    911930    $data = array(
     
    12211240{
    12221241    //function cache削除
    1223     pne_cache_drop('db_common_c_profile_list');
     1242    cache_drop_c_member_profile($c_member_id);
    12241243
    12251244    foreach ($c_member_profile_list as $item) {
     
    12441263{
    12451264    //function cache削除
    1246     pne_cache_drop('db_common_c_profile_list');
     1265    cache_drop_c_member_profile($c_member_id);
    12471266
    12481267    $data = array(
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/lib/util/cache.php

    r603 r658  
    5353}
    5454
     55/***
     56 * 再帰的に関数をコールする pne_cache_call
     57 */
     58function pne_cache_recursive_call($lifetime, $function, $funcarg)
     59{
     60    $backtrace = debug_backtrace();
     61
     62    if (OPENPNE_USE_FUNCTION_CACHE) {
     63        array_unshift($funcarg, $function);
     64        $cache =& get_cache_lite_function();
     65        $cache->setOption('lifetime', intval($lifetime));
     66        return call_user_func_array(array(&$cache, 'call'), $funcarg);
     67    } else {
     68        return call_user_func_array($function, $funcarg);
     69    }
     70}
     71
    5572//---
    5673
     
    6077function cache_drop_c_member($c_member_id)
    6178{
    62     pne_cache_drop('p_f_home_c_friend_list4c_member_id', $c_member_id, 9);
    63     pne_cache_drop('p_h_home_c_diary_friend_list4c_member_id', $c_member_id, 5);
     79    pne_cache_drop('db_friend_c_friend_list4c_member_id', $c_member_id, 9);  //フレンドリスト
     80    pne_cache_drop('p_h_home_c_diary_friend_list4c_member_id', $c_member_id, 5);  //最新日記フィード
    6481
     82    //誕生日フィード
    6583    include_once 'Calendar/Week.php';
    6684
     
    7088        $m = $Day->thisMonth();
    7189        $d = $Day->thisDay();
    72         pne_cache_drop('p_h_home_birth4c_member_id', $m, $d, $c_member_id);
     90        pne_cache_drop('db_member_birth4c_member_id', $m, $d, $c_member_id);
    7391    }
     92
     93    cache_drop_c_friend_intro($c_member_id);  //紹介文
    7494}
    75 
    7695
    7796/**
     
    8099function cache_drop_c_commu($c_commu_id)
    81100{
    82     pne_cache_drop('p_c_home_c_commu_member_list4c_commu_id', $c_commu_id, 9);
    83     pne_cache_drop('p_c_home_c_commu4c_commu_id', $c_commu_id);
     101    pne_cache_drop('db_commu_c_commu_member_list4c_commu_id', $c_commu_id, 9);
     102    pne_cache_drop('db_commu_c_commu4c_commu_id2', $c_commu_id);
    84103
    85     $c_commu_topic_list = p_c_home_new_topic_comment4c_commu_id($c_commu_id, 7);
    86     $c_commu_event_list = p_c_home_new_topic_comment4c_commu_id($c_commu_id, 7, 1);
     104    $c_commu_topic_list = db_commu_new_topic_comment4c_commu_id($c_commu_id, 7);
     105    $c_commu_event_list = db_commu_new_topic_comment4c_commu_id($c_commu_id, 7, 1);
    87106    $c_commu_bbs_list = array_merge($c_commu_topic_list, $c_commu_event_list);
    88107
     
    107126function cache_drop_c_commu_list4c_member_id($c_member_id)
    108127{
    109     pne_cache_drop('p_h_home_c_commu_list4c_member_id', $c_member_id, 9);
    110     pne_cache_drop('p_f_home_c_commu_list4c_member_id', $c_member_id, 9);
     128    pne_cache_drop('db_commu_c_commu_list4c_member_id_3', $c_member_id, 9);
     129    pne_cache_drop('db_commu_c_commu_list4c_member_id_2', $c_member_id, 9);
    111130}
    112131
     132
     133/**
     134 * 紹介文取得のfunction cacheを削除する
     135 */
     136function cache_drop_c_friend_intro($c_member_id)
     137{
     138    pne_cache_drop('db_friend_c_friend_intro_list4c_member_id', $c_member_id, 5);
     139    pne_cache_drop('db_friend_c_friend_comment4c_member_id', $c_member_id);
     140}
     141
     142/**
     143 * プロフィール取得のfunction cacheを削除する
     144 */
     145function cache_drop_c_member_profile($c_member_id)
     146{
     147    pne_cache_drop(db_member_c_member4c_member_id, $c_member_id);
     148    pne_cache_drop('db_member_c_profile_list');
     149}
     150
     151/**
     152 * お気に入り関連のfunction cacheを削除する
     153 */
     154function cache_drop_c_bookmark($c_member_id)
     155{
     156    pne_cache_drop('db_bookmark_member_list', $c_member_id, 9);
     157}
    113158?>
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/lib/util/page.php

    r229 r658  
    1818function fetch_inc_navi($type, $target_id = null)
    1919{
     20    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
     21
     22    if (!$is_recurred) {  //function cacheのために再帰処理を行う
     23        $is_recurred = true;
     24        $funcargs = func_get_args();
     25        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     26    }
     27
     28    $is_recurred = false;
     29
    2030    $inc_smarty = new OpenPNE_Smarty($GLOBALS['SMARTY']);
    2131    $inc_smarty->templates_dir = 'pc/templates';
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/modules/pc/page/c_home.php

    r605 r658  
    1212        $c_commu_id = $requests['target_c_commu_id'];
    1313
    14         $c_commu = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_c_home_c_commu4c_commu_id', $c_commu_id);
     14        $c_commu = p_c_home_c_commu4c_commu_id($c_commu_id);
    1515        //コミュニティの存在の有無
    1616        if (!$c_commu) {
     
    1818        }
    1919
    20         $inc_navi = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'fetch_inc_navi', 'c', $c_commu_id);
     20        $inc_navi = fetch_inc_navi('c', $c_commu_id);
    2121        $this->set('inc_navi', $inc_navi);
    2222
     
    3131
    3232        //コミュニティメンバー
    33         $c_commu_member_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_c_home_c_commu_member_list4c_commu_id', $c_commu_id, 9);
     33        $c_commu_member_list = p_c_home_c_commu_member_list4c_commu_id($c_commu_id, 9);
    3434        $this->set('c_commu_member_list', $c_commu_member_list);
    3535
     
    3838
    3939        //参加コミュニティの新着トピック書き込み
    40         $new_topic_comment = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_c_home_new_topic_comment4c_commu_id', $c_commu_id, 7);
     40        $new_topic_comment = p_c_home_new_topic_comment4c_commu_id($c_commu_id, 7);
    4141        $this->set('new_topic_comment', $new_topic_comment);
    4242        //参加コミュニティの新着イベント書き込み
    43         $new_topic_comment_event = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_c_home_new_topic_comment4c_commu_id', $c_commu_id, 7, 1);
     43        $new_topic_comment_event = p_c_home_new_topic_comment4c_commu_id($c_commu_id, 7, 1);
    4444        $this->set('new_topic_comment_event', $new_topic_comment_event);
    4545        //参加コミュニティの新着おすすめレビュー
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/modules/pc/page/f_home.php

    r597 r658  
    3434
    3535        $this->set('is_h_prof', 0);
    36         $inc_navi = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'fetch_inc_navi', 'f', $target_c_member_id);
     36        $inc_navi = fetch_inc_navi('f', $target_c_member_id);
    3737        $this->set('inc_navi', $inc_navi);
    3838
    3939        $is_friend = db_friend_is_friend($u, $target_c_member_id);
    4040        if ($is_friend) {
    41             $target_c_member = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_member_with_profile', $target_c_member_id, 'friend');
     41            $target_c_member = db_common_c_member_with_profile($target_c_member_id, 'friend');
    4242            // 自分が書いた紹介文
    4343            $this->set('my_friend_intro', p_f_home_c_friend_intro($u, $target_c_member_id));
    4444        } else {
    45             $target_c_member = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_member_with_profile', $target_c_member_id, 'public');
     45            $target_c_member = db_common_c_member_with_profile($target_c_member_id, 'public');
    4646            // 友達の友達
    4747            $this->set('friend_path', p_f_home_friend_path4c_member_ids($u, $target_c_member_id));
     
    4949
    5050        $this->set('is_friend', $is_friend);
    51         $c_member = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_member4c_member_id', $u);
     51        $c_member = db_common_c_member4c_member_id($u);
    5252        $this->set('c_member', $c_member);
    53         $c_diary_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_diary_get_c_diary_list4c_member_id', $target_c_member_id, 5, $u);
     53        $c_diary_list = db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, $u);
    5454        $this->set('c_diary_list', $c_diary_list);
    5555
     
    6565        $this->set('c_rss_cache_list', p_f_home_c_rss_cache_list4c_member_id($target_c_member_id, 5));
    6666
    67         $c_friend_comment_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_f_home_c_friend_comment4c_member_id', $target_c_member_id);
     67        $c_friend_comment_list = p_f_home_c_friend_comment4c_member_id($target_c_member_id);
    6868        $this->set('c_friend_comment_list', $c_friend_comment_list);
    69         $c_friend_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_f_home_c_friend_list4c_member_id', $target_c_member_id, 9);
     69        $c_friend_list = p_f_home_c_friend_list4c_member_id($target_c_member_id, 9);
    7070        $this->set('c_friend_list', $c_friend_list);
    7171        $this->set('c_friend_count', db_friend_count_friends($target_c_member_id));
    7272        $this->set('user_count', p_common_count_c_commu4c_member_id($target_c_member_id));
    73         $c_commu_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_f_home_c_commu_list4c_member_id', $target_c_member_id, 9);
     73        $c_commu_list = p_f_home_c_commu_list4c_member_id($target_c_member_id, 9);
    7474        $this->set('c_commu_list', $c_commu_list);
    7575        $this->set('c_review_list', db_review_c_review_list4member($target_c_member_id, 5));
    7676
    77         $profile_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_profile_list');
     77        $profile_list = db_common_c_profile_list();
    7878        $this->set('profile_list', $profile_list);
    7979
  • OpenPNE/branches/ebihara/prj_tuning_2_5/webapp/modules/pc/page/h_home.php

    r585 r658  
    1616        $u = $GLOBALS['AUTH']->uid();
    1717
    18         $inc_navi = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'fetch_inc_navi', 'h');
     18        $inc_navi = fetch_inc_navi('h');
    1919        $this->set('inc_navi', $inc_navi);
    2020
     
    5050
    5151        // メンバ情報
    52         $c_member = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_common_c_member4c_member_id', $u);
     52        $c_member = db_common_c_member4c_member_id($u);
    5353        $this->set('c_member', $c_member);
    5454        // フレンドリスト
    55         $c_friend_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_f_home_c_friend_list4c_member_id', $u, 9);
     55        $c_friend_list = p_f_home_c_friend_list4c_member_id($u, 9);
    5656        $this->set('c_friend_list', $c_friend_list);
    5757        $this->set('c_friend_count', db_friend_count_friends($u));
    5858        // 参加コミュニティ
    59         $c_commu_user_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_commu_list4c_member_id', $u, 9);
     59        $c_commu_user_list = p_h_home_c_commu_list4c_member_id($u, 9);
    6060        $this->set('c_commu_user_list', $c_commu_user_list);
    6161        $this->set('fh_com_count_user', p_common_count_c_commu4c_member_id($u));
     
    6464
    6565        // フレンド最新日記
    66         $c_diary_friend_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_diary_friend_list4c_member_id', $u, 5);
     66        $c_diary_friend_list = p_h_home_c_diary_friend_list4c_member_id($u, 5);
    6767        $this->set('c_diary_friend_list', $c_diary_friend_list);
    6868        // フレンド最新blog
    6969        $this->set('c_rss_cache_list', p_h_diary_list_friend_c_rss_cache_list($u, 5));
    7070        // 日記コメント記入履歴
    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);
     71        $c_diary_my_comment_list = p_h_home_c_diary_my_comment_list4c_member_id($u, 5);
    7272        $this->set('c_diary_my_comment_list', $c_diary_my_comment_list);
    7373        // 参加コミュニティの新着書き込み
     
    7979
    8080        // 日記
    81         $c_diary_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_diary_get_c_diary_list4c_member_id', $u, 5);
     81        $c_diary_list = db_diary_get_c_diary_list4c_member_id($u, 5);
    8282        $this->set('c_diary_list', $c_diary_list);
    8383        // 外部blog
     
    8989
    9090        // 紹介文
    91         $c_friend_intro_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_c_friend_intro_list4c_member_id', $u, 5);
     91        $c_friend_intro_list = p_h_home_c_friend_intro_list4c_member_id($u, 5);
    9292        $this->set('c_friend_intro_list', $c_friend_intro_list);
    9393
     
    114114
    115115            //お気に入りのメンバ
    116             $bookmark_member_list = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'db_bookmark_member_list', $u, 9);
     116            $bookmark_member_list = db_bookmark_member_list($u, 9);
    117117            $this->set('bookmark_member_list', $bookmark_member_list);
    118118            $this->set('bookmark_count', db_bookmark_count($u));
     
    143143            $m = $Day->thisMonth();
    144144            $d = $Day->thisDay();
    145             $birth = pne_cache_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, 'p_h_home_birth4c_member_id', $m, $d, $u);
     145            $birth = p_h_home_birth4c_member_id($m, $d, $u);
    146146            $item = array(
    147147                'year'=> $y,
Note: See TracChangeset for help on using the changeset viewer.