PearlView Counter
Counts post views in Redis and writes them to MySQL only during the hours you choose.
Install in
A visit does not update the database. The page prints the current total and, after it has loaded, a tiny request adds one to a Redis counter. A scheduled check later copies those counters into post meta, and only while the clock is inside a window you set.
Default windows, India time (Asia/Kolkata):
- 3:00 AM to 12:00 PM
- 3:00 PM to 6:00 PM
Change the time zone, the hours, and how often the check runs under Settings PearlView Counter.
The total shown at the end of a post is the database value plus anything still waiting in Redis.
Requires a persistent object cache. Redis, via the Redis Object Cache plugin, is the expected setup.
Written by Joobi from the project's own listing. See the source page
1.0.0
- First release. Redis counting, scheduled database writes, and a settings screen for the write hours.
Follow this listing's changes (Atom feed)