Sorry! I cann’t see any difference in terms of speed with PHP Speedy plugin. For your JS, you can speed up with Google CDN.
For sitewide, use Super Cache Plugin.
Thread Starter
Ovidiu
(@ovidiu)
well, speedy just took my 5-8 js scripts being loaded by different plugins, compressed them into one and gzipped it so its smaller and only one file now. thx for the other tipps
hmm i am looking for this thanks for sharing.
I believe I have a solution to this problem. PHP Speedy’s output buffering gets stacked below WP Super Cache’s, and the way that WP Super Cache handles working with its own output buffer doesn’t take this into account. The buffers below WP Super Cache’s need to be resolved before WP Super Cache can continue with its page processing. I’ve come up with the following code which seems to allow PHP Speedy and WP Super Cache to play nicely together. This replaces the standalone @ob_end_flush() in wp-cache-phase2.php:
//back up through any output buffers until we get to us
$output_buffer_handlers = ob_list_handlers();
while (count($output_buffer_handlers) > 0) {
@ob_end_flush();
if (array_pop($output_buffer_handlers) == "wp_cache_ob_callback") { break; }
}
johncoswell, your fix also works with the latest version of PHP Speedy (0.5) which is compatible with WP 2.7. Thanks for the tip!
If this addition doesn’t break anything for the most PHP environments, maybe it is worth including it in one of the future releases of Super Cache.
johncoswell – I cant get your fix to work. Could you perhaps post the entire source over at http://pastebin.com for the rest of us? Thanks!
Thanks. Unfortunately the fix doesn’t seem to help me – the modified WP Super Cache still doesn’t cache anything when running PHP Speedy.
OK, can you do a little diagnostic for me? Right after:
$output_buffer_handlers = ob_list_handlers();
can you add:
error_log("buffers: " . implode(", ", $output_buffer_handlers));
And then post the result from your error log? I want to see what the status of the buffers on your machine looks like when you hit that point in the code.
Well, actually – I never hit that point. The caching never happens. (while running PHP Speedy 0.5). With PHP Speedy off, $output_buffer_handlers is empty.
Just noticed 0.5.1 was released: http://aciddrop.com/2008/12/15/php-speedy-wp-051-recommended-upgrade/
Same results though. No caching whatsoever while speedy is running.
Thread Starter
Ovidiu
(@ovidiu)
unfortunately it seems neither one of the two plugin authors is taking note of this issues đ
Ovidiu – I don’t use php-speedy and don’t have time to debug it. Sorry.
Thread Starter
Ovidiu
(@ovidiu)
đ k, thx donncha now at least I know you read this đ
I am impatiently waiting for you to finish wpmu 2.7 so please don’t waste your time on this minor issue đ
have a nice day