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

Changeset 1576


Ignore:
Timestamp:
Jan 15, 2007, 11:55:30 PM (14 years ago)
Author:
kunitada
Message:

1528:1541 ebi merge

Location:
OpenPNE/branches/prj_tuning/webapp/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/prj_tuning/webapp/lib/db/message.php

    r619 r1576  
    3232function db_message_count_c_message_not_is_read4c_member_to_id($c_member_id_to)
    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_FAST, __FUNCTION__, $funcargs);
     40    }
     41
     42    $is_recurred = false;
     43
    3444    $sql = 'SELECT COUNT(*) FROM c_message WHERE c_member_id_to = ?' .
    3545            ' AND is_read = 0 AND is_send = 1';
     
    505515        'c_member_id_to' => intval($c_member_id),
    506516    );
     517    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id);
    507518    return db_update('c_message', $data, $where);
    508519}
     
    533544    do_common_send_message_mail_send($c_member_id_to, $c_member_id_from);
    534545    do_common_send_message_mail_send_ktai($c_member_id_to, $c_member_id_from);
     546    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
    535547
    536548    return $c_message_id;
     
    542554    //メッセージ
    543555    db_message_insert_c_message_syoudaku($c_member_id_from, $c_member_id_to, $subject, $body);
     556    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
    544557
    545558    do_common_send_message_syoudaku_mail_send($c_member_id_to, $c_member_id_from);
     
    551564    //メッセージ
    552565    db_message_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
     566    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
    553567
    554568    do_common_send_message_syoukai_commu_mail_send($c_member_id_to, $c_member_id_from);
     
    560574    //メッセージ
    561575    db_message_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
     576    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
    562577
    563578    do_common_send_message_syoukai_member_mail_send($c_member_id_to, $c_member_id_from);
     
    569584    //メッセージ
    570585    db_message_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
     586    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
    571587
    572588    do_common_send_message_event_invite_mail_send($c_member_id_to, $c_member_id_from);
     
    578594    //メッセージ
    579595    db_message_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
     596    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
    580597
    581598    do_common_send_message_event_message_mail_send($c_member_id_to, $c_member_id_from);
  • OpenPNE/branches/prj_tuning/webapp/lib/util/cache.php

    r979 r1576  
    141141    pne_cache_drop('db_friend_c_friend_intro_list4c_member_id', $c_member_id, 5);
    142142    pne_cache_drop('db_friend_c_friend_comment4c_member_id', $c_member_id);
     143    pne_cache_drop('db_friend_c_friend_comment4c_member_id', $c_member_id, 5);
    143144}
    144145
Note: See TracChangeset for help on using the changeset viewer.