Hi Frederick,
I was wondering if it is posible to use the add_action function even with caching the page.
I have a Stats plugin wich calls:
add_action('wp','es_pageviews');
function es_pageviews(){
if(is_single() || is_page()){
global $post;
$pv = get_post_meta($post->ID, '_pageviews',true);
update_post_meta($post->ID, '_pageviews', $pv+1);
}
}
Very simple, as you can see.
Using W3 Total Cache it gets cached, of course.
Is there any chance I can force it to run the function? (even if the W3 Total Cache shows the static page as usual)
I mean... update the post_meta "on background".
Waiting for answer,
Thanks.