Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Rocko88

    (@rocko88)

    Well, the website is slow and that’s because of high load we have recently. We’re upgrading our hardware, but before this happens I want my website pages to be displayed fully 🙂

    Yes, the bottom comments are present in the partially cached files. That’s why I suppose that it’s not the output problem, it happens when the plugin tries to read and cache the page on the first time.

    I’ll look into the error logs and debug info.

    Thanks.

    Thread Starter Rocko88

    (@rocko88)

    No, as I said, it only caches a portion of a page. I checked that in /cache directory as well – then HTML content of come cache files contain only part of a page.

    Thread Starter Rocko88

    (@rocko88)

    Ok.
    So the only solution I came up with is to insert the desired set of options when user registers on the site… :/

    // insert custom arrangment of the post-add-edit form boxes
    // for every single user upon registered
    function set_user_metaboxes($user_id) {
    
        // order
        $meta_key = 'meta-box-order_post';
        $meta_value = array(
            'side' => 'submitdiv,formatdiv,categorydiv,postimagediv',
            'normal' => 'postexcerpt,trackbacksdiv,tagsdiv-post_tag,postcustom,commentstatusdiv,commentsdiv,slugdiv,authordiv,revisionsdiv',
            'advanced' => '',
        );
        update_user_meta( $user_id, $meta_key, $meta_value );
    
        // hiddens
        $meta_key = 'metaboxhidden_post';
        $meta_value = array('postexcerpt','trackbacksdiv','commentstatusdiv','commentsdiv','slugdiv','authordiv','revisionsdiv');
        update_user_meta( $user_id, $meta_key, $meta_value );
    
    }
    add_action('user_register', 'set_user_metaboxes');

    More elegant solutions are welcomed.

Viewing 3 replies - 1 through 3 (of 3 total)