Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

How to find time last viewed?

Post views log/count is not available natively. It is resource-intensive (database writes are much more expensive than reads) and won’t work (if done in pure PHP) with most caching plugins.

There is number of plugins/services that offers Analytics via JS- or image-based tracking. Your best bet is to let such service handle analytics and pull data from there.

Related Posts:

  1. Explanation of update_post_(meta/term)_cache
  2. W3 total cache – cache refresh programmatically [closed]
  3. Should I use Transient API to store HTML String, or Object?
  4. Caching: APC vs APCu vs OPcache
  5. Best way to show Dynamic Content on a Cached WordPress Site?
  6. Is define(‘WP_CACHE’, true) needed for object caching?
  7. Prevent WordPress from sending Cache-control http header
  8. Optimize apache for WP use
  9. Pros and Cons for high “expire time” on wp-super-cache or w3-total-cache? [closed]
  10. Limit cache size from W3 Total Cache [closed]
  11. Does a query executed through wpdb class get cached?
  12. Configuring WordPress for Amazon CloudFront Caching?
  13. Caching: Force fresh content for logged-in users (potentially by adding a query variable to the URL)
  14. Multiple WordPress sites eat up alot of RAM
  15. What exactly is an advanced object cache?
  16. Using a wildcard with delete_transient()
  17. Will I see a performance hit if I use native API calls like get_the_title() instead of $post->post_title?
  18. WordPress Browser Cache with W3-Total-Cache doesn’t show new posts [closed]
  19. Nginx + WordPress + HHVM: Why isn’t Batcache working? Would Varnish help even more?
  20. Does a low traffic WordPress site need a caching plugin and a CDN
  21. Automatically Refresh WordPress Stylesheet
  22. wp_cache_set() or wp_cache_add()
  23. How to use cache with simplepie
  24. Fragment caching increasing database queries
  25. Can I force get_option to go back to the DB instead of cache?
  26. Why time functions show invalid time zone when using ‘c’ time format?
  27. Which WordPress pages/URLs should never be cached?
  28. How to archive a wordpress site (make it read only)
  29. How to purge all transient caches?
  30. Stale cache handling with a persistent object cache
  31. Varnish + W3 Total Page Cache [closed]
  32. Are there any server requirements for WordPress transients to work properly?
  33. Writing a cache manifest file for a WordPress blog (app cache, offline web applications)
  34. Transients vs CRON +Custom Fields: Caching Data Per Post
  35. W3 Total Cache doesn’t detect memcached [closed]
  36. Settings to get the most out of W3 Total Cache
  37. How to force content refresh of a page that has been loaded previously by the user? [closed]
  38. Help Pinpointing Source of Caching Issue
  39. How to clear cache without a plugin [closed]
  40. get_post_meta causes database queries
  41. can’t see live version of style.css – is it web server caching?
  42. Human Time Diff, change mins to minutes
  43. Want to enforce the visitor to load the new version of your stylesheets and scripts [closed]
  44. Can someone explain WordPress caching, and what’s the best in my scenario?
  45. Transient / object cache maximum key length [duplicate]
  46. Speed up WordPress
  47. wp-super-cache exclude file from caching
  48. APC object caching in combination Batcache/memcached page caching?
  49. Should the page cache be refreshed often? [closed]
  50. How can I free up the memory used by update_post_meta?
  51. WordPress caching in development
  52. Plugin a specific cache functionality?
  53. What is difference between ‘Page Cache’ and ‘Object Cache’ in WordPress?
  54. W3 total Cache – Site with query strings
  55. Possible to configure nginx to ignore cache for logged in users in certain roles only?
  56. Check if a user is connected and get is ID without fully loading wordpress
  57. Should I enable FastCGI on WordPress?
  58. Programmatically insert hierarchical terms & set terms for post causes glitch? [duplicate]
  59. Will caching WordPress affect session variables, custom filed updates and displaying images from a non wordpress table?
  60. How to add “time” data this?
  61. Getting soft 404 errors (200 status) when caching plugins are enabled
  62. How to totally disable cache in WordPress?
  63. Automatically enabled caching in some hosting companies w/o visible plugin (Must use plugin)
  64. Database Cache and Object Cache Difference?
  65. Register script version not showing
  66. How to purge all transient caches?
  67. W3 Total Cache plugin integration
  68. When use a cache system with WordPress
  69. server load. $_SERVER[‘REMOTE_ADDR’] and $_SERVER[‘HTTP_HOST’] [closed]
  70. Optimizing Jetpack for WordPress [closed]
  71. Is it possible to save an entire piece of rendered HTML in a transient?
  72. Execute a piece of code also when the cached version of a page is served
  73. Method to make definitively static an abandoned WP blog
  74. How do I fetch feed info from cache instead of directly from feed?
  75. pass-protected pages and posts not protected after enter them 1 time
  76. Can a WordPress blog be entirely hosted on a CDN if cached?
  77. Static HTML page caching for large website [closed]
  78. To have WordPress interact with memcached it must be installed as a PHP extension?
  79. Transients are not expiring as expected in simple custom plugin
  80. WordPress caching issue
  81. Prevent installation of style.css cookies and file caching
  82. How can I revert to showing cached pages when no database connection is available? [closed]
  83. How to add a new meta key and assign timestamp to posts
  84. WP Super Cache Bug with Ubermenu
  85. How to speed up my site [duplicate]
  86. Problem with caching, W3TC [closed]
  87. Headway body classes and W3TC page cache conflict [closed]
  88. Reasonable Size Limit to options entry
  89. Is the object cached?
  90. How can I cache the LearnDash quizzes on my server?
  91. How to display post view count by date, week and month?
  92. WP Rocket Cache Lifespan – Never clear cache? [closed]
  93. Disable feed cache for custom RSS feed?
  94. How do I enable dynamic content in a theme cached with WP Super Cache?
  95. How to cache a different page version based on HTTP header?
  96. WP_Object_Cache for heavy WP_Query
  97. How to store or cache custom shopping cart data for every user’s session
  98. Live website is not showing the changes I’ve made [closed]
  99. How to decode wordpress transient cache stored in database?
  100. Hook an action when a transient is deleted ? Can’t get it to work!
Categories cache Tags cache, post-meta, timestamp, views
Category slug field missing with registered custom taxonomy
How can I load jquery library into my dashboard widget?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress