Is it possible to update the database only when the next page is loaded without automatic update?

I’m stumbling on a database :sweat_smile:

What I want to achieve :
In repeating group or group, when my page with posts is loaded, value is set and do not change the “likes_count” value afterwards, only change it after the next page load or when I like the post.

Is it possible to make such a custom?

Thank you!