Cache and Plugins
-
Hi.
I am trying to make a ‘view count’ plugin. I dont want to use other plugins, because my web site have a huge traffic and wp-postviews plugin is using a big system resource (and other Lester ‘GaMerZ’ Chan’s plugins), it’s logging all ip’s and referers etc. I created a basic plugin:
function encokizlenenlerhesapla () {
if (is_single ()) {
global $post;
if ($izlenme = get_post_meta ($post->ID, “izlenme”, true))
update_post_meta ($post->ID, “izlenme”, ++$izlenme);
else
add_post_meta ($post->ID, “izlenme”, 1, true);
}
}
add_action (“wp”, “encokizlenenlerhesapla”);It’s working fine but only one time before wp-super-cache work. After then wp-super-cache is sending cached page, wordpress is ignoring this plugin. I think, i have a problem in add_action. I don’t found how can i run this before wp-super-cache. Can I do that or how can i do?
Thanks for help.
- The topic ‘Cache and Plugins’ is closed to new replies.