/** * メンバー情報取得関連のfunction cacheを削除する */ function cache_drop_c_member($c_member_id) { $c_member_id = (int) $c_member_id; pne_cache_drop('db_friend_c_friend_id_list4c_member_id', $c_member_id, 9); //フレンドリスト pne_cache_drop('db_friend_c_friend_list_random4c_member_id', $c_member_id, 5); pne_cache_drop('p_h_home_c_diary_friend_list4c_member_id', $c_member_id, 5); //最新日記フィード pne_cache_drop('db_rss_list_friend_c_rss_cache_list', $c_member_id, 5); pne_cache_drop('db_rss_list_friend_c_rss_cache_list', $c_member_id, 20); $c_member_id = (string) $c_member_id; pne_cache_drop('db_friend_c_friend_id_list4c_member_id', $c_member_id, 9); //フレンドリスト pne_cache_drop('db_friend_c_friend_list_random4c_member_id', $c_member_id, 5); pne_cache_drop('p_h_home_c_diary_friend_list4c_member_id', $c_member_id, 5); //最新日記フィード pne_cache_drop('db_rss_list_friend_c_rss_cache_list', $c_member_id, 5); pne_cache_drop('db_rss_list_friend_c_rss_cache_list', $c_member_id, 20); //誕生日フィード include_once 'Calendar/Week.php'; $Week = new Calendar_Week(date('Y'), date('m'), date('d'), 0); $Week->build(); while ($Day = $Week->fetch()) { $m = $Day->thisMonth(); $d = $Day->thisDay(); $c_member_id = (int) $c_member_id; pne_cache_drop('db_member_birth4c_member_id', $m, $d, $c_member_id); $c_member_id = (string) $c_member_id; pne_cache_drop('db_member_birth4c_member_id', $m, $d, $c_member_id); } cache_drop_c_friend_intro($c_member_id); //紹介文 }
/** * フレンド紹介文入力・編集 */ function db_friend_update_c_friend_intro($c_member_id_from, $c_member_id_to, $intro) { //function cacheを削除 cache_drop_c_friend_intro($c_member_id_to); // 紹介文中に書いてあるURLがSNS内でありセッションパラメータを含んでいた場合は削除 $intro = db_ktai_delete_url_session_parameter($intro); $data = array('intro' => $intro, 'r_datetime_intro' => db_now()); $where = array('c_member_id_from' => intval($c_member_id_from), 'c_member_id_to' => intval($c_member_id_to)); db_update('c_friend', $data, $where); }