Title: Cache and Plugins
Last modified: August 19, 2016

---

# Cache and Plugins

 *  [onuraslan](https://wordpress.org/support/users/onuraslan/)
 * (@onuraslan)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/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.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [onuraslan](https://wordpress.org/support/users/onuraslan/)
 * (@onuraslan)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/cache-and-plugins/#post-882897)
 * Readable code:
    ` 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");
 *  Thread Starter [onuraslan](https://wordpress.org/support/users/onuraslan/)
 * (@onuraslan)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/cache-and-plugins/#post-883062)
 * I really need help. Do you have any idea for this issue?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cache and Plugins’ is closed to new replies.

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [view count](https://wordpress.org/support/topic-tag/view-count/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [onuraslan](https://wordpress.org/support/users/onuraslan/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/cache-and-plugins/#post-883062)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
