Forum Replies Created

Viewing 5 replies - 211 through 215 (of 215 total)
  • I do not run P2 on my production website, but I have installed it and activated it for a few minutes to run wp-tuner on it. It clearly is requiring more resources than my existing theme (and my existing theme has MANY more plugins on it AND like P2 it displays both the posts and the comments on the index page so it increases the number of sql queries as compared to most standard themes). Of course a few minutes isn’t really statistically significant, but the increase in queries alone tells me it will be slower than my current theme regardless of server load, etc.

    I would recommend installing wp-tuner to see what impact it has on page generation times, sql queries, and memory usage on your specific webserver.

    I agree 100% and was coming here to the forums to post the exact same thing. The commenting system in P2 is outstanding and most of the existing comment plugins are terrible. I’ve looked at the code too and its implementing well using the Jquery capabilities built into the WordPress Core so you can be assured of no conflicts.

    P2 is awesome as a concept and as a developer myself, I totally understand why its implemented as a theme. However, the “style” of it is not for everyone. Its great that child themes are now possible. However, I really would like to see the ajax comment system and possibily even the post publisher (probably without the various post types, though as those significantly complicate adding P2 capability to other themes) implemented as plugins. This would allow any site with any theme to take advantage of these features.

    Any chance of this happening guys?

    Tim Nicholson

    (@timnicholson)

    Otto: Sorry for jumping on an older thread here, but this is interesting information. Specifically, you listed `function block_transport() { return false; }
    add_filter(‘use_http_extension_transport’, ‘block_transport’);
    add_filter(‘use_curl_transport’, ‘block_transport’);
    add_filter(‘use_streams_transport’, ‘block_transport’);
    add_filter(‘use_fopen_transport’, ‘block_transport’);
    add_filter(‘use_fsockopen_transport’, ‘block_transport’);`

    Do you know what default WP functions we would be blocking with each of the individual filters above? Eg, pingbacks, trackbacks, XML-RPC, etc? If some of us don’t need some of those things, we could shut them off without issue, but I’d hate to shut down a protocol that is needed for something I consider important.

    Also, I don’t believe it was mentioned here in this thread, but I found a tip on the WP Tuner site about physically removing unused plugins. https://blogs.icta.net/plugins/2009/08/24/wptuner-096-comments/#comment-642. It makes no sense to me how this could help, but I have seen marked improvement in my page loads since doing it. I looked at the wp-settings.php file it reads the list of active plugins from the database. It doesn’t just loop through all the files in the plugin directory. So it really makes no sense, but it seems to work. Do you have any idea why something like that might improve performance?

    Tim Nicholson

    (@timnicholson)

    bal, try using the WP built-in function to get the thumbnail version of the image. You can set the size of the thumbnail that WP will create when you upload the image on your post.

    The code should look something like this:

    //Get images attached to the post
    $args = array(
    	'post_type'      => 'attachment',
    	'post_mime_type' => 'image',
    	'numberposts'    => -1,
            'order'          => 'ASC',
    	'post_status'    => null,
    	'post_parent'    => $post->ID
    );
    $attachments = get_posts($args);
    if ($attachments) {
    	foreach ($attachments as $attachment) {
    		$img = wp_get_attachment_thumb_url( $attachment->ID );
    echo '<link rel="image_src" href="'.$img.'">';
                    break;
            }

    Also check out this function, which could be used to pull the “medium” or “large” version of the uploaded image:
    https://codex.www.ads-software.com/Function_Reference/wp_get_attachment_image_src

    Forum: Fixing WordPress
    In reply to: Move to MU?

    Figaro, I’ve been researching WordPress MU simply to be able to house a few different blogs. Currently I only planning on posting to these blogs myself. I read on these forums that MU doesn’t have a single user database. I don’t want people to have to register multiple times.

    My main question in running a few different standard WordPress blogs is what does that do for server memory requirements? Right now I have a couple of PHP Nuke sites and a new WordPress site with virtually no page views yet. I’m on a small dedicated server with 512MB RAM. Prior to installing WordPress, I never really used more than about half that. Now that I have WordPress, again with virtually NO traffic yet, my memory is always pegged. I’m concerned that installing more copies of the single-site WordPress will kill my server.

    Do you have any insight on this? I prefer not to use WP-Cache as I have a lot of variable content and hear it may cause problems with tracking site traffic.

Viewing 5 replies - 211 through 215 (of 215 total)