User tests: Successful: Unsuccessful:
Pull Request for Issue #27437 .
Update the hit counter even if there is a publisher new url
update the hit count for all the non-existing urls
updates the hit count only for the disabled links
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
I can't help here.
I have searched but haven't found it. Maybe I remember wrong, or maybe it was hidden in some issue or pr not directly related to the hit counter.
There are pros and cons.
A con is when counting redirect hits for a redirect which is enabled over years, the count might become very high. Maybe the count once was intended to show only how much a redirect would be needed, i.e. count the 404 only so I can see if it really needs to enable it or not.Tthis can be quickly seen with new collected urls by just ordering by the count, or descending by id and then verifying the counts. When having a counts for all redirects, maybe all with similar, high counts, it might be less easy to quickly see that.
A pro would be to see if a count did not increase anymore for a longer time for an enable redirect, then it could be removed maybe. But it would be easier to see that if it was possible to reset the counter so I can see after a while if it is still zero, then the redirect could be removed, instead of having to compare with an old counter value to see if it has changed or not.
I am not sure what is better, count only the 404 like now, or always count.
But especially if always count it would be good to have a way to reset the counter without having to use PhpMadmin or similar tools. Maybe it could always be reset when status changes from disabled to enabled or vice versa?
A pro would be to see if a count did not increase anymore for a longer time for an enable redirect, then it could be removed maybe.
Thats why I was looking at this in the first place with a view to updating the modified date each time it was "hit" and thats when I discovered the issue
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-02-12 19:28:18 |
Closed_By | ⇒ | alikon | |
Labels |
Added:
?
|
The code wasn't the issue. It's am easy fix. The question was if there was a reason