W3 Total Cache
View count function hooked to 'wp' not counting (1 post)

  1. supertester
    Posted 2 years ago #


    I have a view count function which counts each pageview as a view. The function is hooked to the 'wp' hook. However since W3 Total Cache caches the whole website, the count function does not work.

    I know I can fix this by running the views function through an AJAX call instead of the 'wp' hook, but I'm wondering if there's any other way to accomplish this?

    I tried to add the path to the views function file to the 'Never cache the following pages:' box in W3 Total Cache-> Page Cache settings page, but that does not solve the issue.

    Anybody got an idea how to accomplish this?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.