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

Changeset 981


Ignore:
Timestamp:
Dec 1, 2006, 7:05:26 PM (14 years ago)
Author:
ebihara
Message:

function cacheのdrop処理を改善

Location:
OpenPNE/branches/ebihara/dev_2_6/webapp/lib
Files:
4 edited

Legend:

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

    r665 r981  
    141141function db_bookmark_member_list($c_member_id, $limit = 0)
    142142{
     143    $result = db_bookmark_member_id_list($c_member_id, $limit);
     144
     145    foreach ($result as $key => $value) {
     146        $result[$key] = db_common_c_member4c_member_id_LIGHT($value['c_member_id']);
     147        $result[$key]['friend_count'] = db_friend_count_friends($value['c_member_id']);
     148    }
     149    return $result;
     150}
     151
     152/**
     153 * お気に入りメンバーリスト用のIDリストを取得する関数
     154 */
     155function db_bookmark_member_id_list($c_member_id, $limit)
     156{
    143157    static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
    144158
     
    161175    }
    162176
    163     foreach ($result as $key => $value) {
    164         $result[$key] = db_common_c_member4c_member_id_LIGHT($value['c_member_id']);
    165         $result[$key]['friend_count'] = db_friend_count_friends($value['c_member_id']);
    166     }
    167177    return $result;
    168178}
     179
    169180
    170181/**
  • OpenPNE/branches/ebihara/dev_2_6/webapp/lib/db/friend.php

    r964 r981  
    193193        $is_recurred = true;
    194194        $funcargs = func_get_args();
    195         return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     195        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_FAST, __FUNCTION__, $funcargs);
    196196    }
    197197
  • OpenPNE/branches/ebihara/dev_2_6/webapp/lib/db/member.php

    r919 r981  
    480480        $is_recurred = true;
    481481        $funcargs = func_get_args();
    482         return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     482        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_FAST, __FUNCTION__, $funcargs);
    483483    }
    484484
  • OpenPNE/branches/ebihara/dev_2_6/webapp/lib/util/cache.php

    r965 r981  
    170170function cache_drop_c_bookmark($c_member_id)
    171171{
    172     pne_cache_drop('db_bookmark_member_list', $c_member_id, 9);
     172    pne_cache_drop('db_bookmark_member_id_list', $c_member_id, 9);
    173173}
    174174?>
Note: See TracChangeset for help on using the changeset viewer.