[Plugin: WP Super Cache] Dynamic Cache not working
-
Wp Super Cache works great until I add the following to my head.php file:
<!--dynamic-cached-content--><?php
youAreHere($post->ID);
?><!--
youAreHere($post->ID);
--><!--/dynamic-cached-content-->
Now when I test the cache I get the following message:The pages do not match! Timestamps differ or were not found!
And the pages on my site are blank.
The function I am trying to call is in my functions.php file. The following works with WP Super Cache turned off:
function youAreHere($postid){ //This creates the breadcrumb
if(function_exists('zg_recently_viewed') && isset($_COOKIE["WP-LastViewedPosts"])){
$crumb = zg_recently_viewed($postid);
}else if(function_exists('bcn_display')){
$crumb = '<p class="breadcrumb">You Are Here: '.bcn_display().'</p>';
}
return $crumb;
}
I’m using PHP to cache.Is there a better javascript solution to call the php using $post->ID where I can use mod_rewrite?
Mahalo for the help.
- The topic ‘[Plugin: WP Super Cache] Dynamic Cache not working’ is closed to new replies.