Home > Bookmarks, PhP, Wordpress > Wp-Cache and Anarchy Media Player

Wp-Cache and Anarchy Media Player

October 20th, 2007 Leave a comment Go to comments

Wordpress plugin incompatibility:

Wp-Cache + Anarchy Media Player (AMP) => Wp-Cache file is not cached!

way ? *.meta html files missing from cache folder: /wp-content/cache/ !

solution:

1st metod:

1. Pass meta file and use html files ( more advanced php skils and not the best solution)

- in file /wp-content/plugins/wp-cache/wp-cache-phase1.php:

change this code line:

if( ($mtime = @filemtime($meta_pathname)) ) {

with:

if( ($mtime = @filemtime($cache_file)) ) {

2.

comment this code:

if (! ($meta = unserialize(@file_get_contents($meta_pathname))) )
return;
foreach ($meta->headers as $header) {
header($header);
}

like this:

// if (! ($meta = unserialize(@file_get_contents($meta_pathname))) )
// return;
// foreach ($meta->headers as $header) {
// header($header);
// }

2nd metod:

( php issues ?) calling: register_shutdown_function(’wp_cache_shutdown_callback’) from  wp-cache-phase2.php not working good!

solution:

1. Disable calling ob_end_flush() function from wp-cache plugin!

- search “ob_end_flush()” in file /wp-content/plugins/wp-cache/wp-cache-phase2.php

- add “//” comment in line with ob_end_flush();

like:

//ob_end_flush();
if ($new_cache) {

2. in footer.php (file located in your folder theme: /wp-content/themes/your-theme/footer.php) add this code

<?php
while (ob_end_flush()) { }
?>

after the last line

</body>
</html>

like this:

</body>
</html>
<?php
while (ob_end_flush()) { }
?>

(ByREV)

  1. March 10th, 2008 at 05:25 | #1

    Thanks for your great tutorials on your website. Quick question: I have INSTALLED the AMP in my plugins, but it is NOT showing up as available to be activated. Is there a way to make it show up as an available plugin, or a commonly known reason that would prevent it from being activatable?

  2. annabel
    February 8th, 2008 at 18:20 | #2

    Thanks for sharing! It already cost me a lot of time, finding the conflict between the plugins. Now the solution doesn’t take as long :)

  1. No trackbacks yet.
GoCache - ByREV-Cache v1.0 - live served in : 0.17592 sec (gzip)