Ini dia nih penjahatnya….

bismillah..

spending my whole evening.. till late night.. just to found out that, this stupid js loader kinda function was the culprit:

function remote_login_js_loader() { global $current_site, $current_blog;

if ( 0 == get_site_option( 'dm_remote_login' ) || is_user_logged_in() )   return false;

$protocol = is_ssl() ? 'https://' : 'http://';

$hash = get_dm_hash(); echo "<script src='{$protocol}{$current_site->domain}{$current_site->path}?dm={$hash}&amp;action=load&amp;blogid={$current_blog->blog_id}&amp;siteid={$current_blog->site_id}&amp;t=" . mt_rand() . "&amp;back=" . urlencode( $protocol . $current_blog->domain . $_SERVER[ 'REQUEST_URI' ] ) . "' type='text/javascript'></script>"; }

bagian dari plugin WordPress MU Domain Mapping.

oalah………

kita ubah jadi:

function remote_login_js_loader() {    global $current_site, $current_blog;

   //if ( 0 == get_site_option( 'dm_remote_login' ) || is_user_logged_in() )    // return false;

   //$protocol = is_ssl() ? 'https://' : 'http://';    $protocol = 'http://'; //$hash = get_dm_hash(); echo "<script src='{$protocol}{$current_site->domain}{$current_site->path}?dm={$hash}&amp;action=load&amp;blogid={$current_blog->blog_id}&amp;siteid={$current_blog->site_id}&amp;t=" . mt_rand() . "&amp;back=" . urlencode( $protocol . $current_blog->domain . $_SERVER[ 'REQUEST_URI' ] ) . "' type='text/javascript'></script>"; }

alhamdulillah..

sumber: http://www.en.jakubas.net.pl/general/solved-wordpress-multisite-domain-mapping-too-slow/169

Discuss - No Comments

No comments yet.