What about creating a second sql table where post views are increased and stored only if $present_data-$creation_of_sql_table_data < 604800 (aka 7 days)? If $present_data-$creation_of_sql_table_data > 604800, then the table is deleted and created again.
I don’t know if it’s possible or if there’s a more efficient way, but I suppose that such feature (already offered by Jetpack) would be much appreciated by a lot of users.
After many years, I feel that it would be more useful to display the most viewed post in the, let’s say, last month, rather than the most viewed post in the last 6/7 years.
Thanks