How to the view count of a question in memory?
- by Freewind
My website is like stackoverflow, there are many questions. I want to record how many times a question has been visited. I have a column called "view_count" in the question table to save it.
If a user visits a question many times, the view_count should be increased only 1. So I have to record which user has visited which question, and I think it…