PearlView Counter
v1.3.0Prashant Gorule · 2026年11月26日 上架
Counts post views in Redis and writes them to MySQL only during the hours you choose.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 20
- 最近更新
- 2026年11月27日
需要 WordPress 6.5+已测试到 7.1.5PHP 7.4+
贡献者
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.