Article hits counter increments unconditionally for the same user in the same session #47419
Replies: 14 comments
-
|
Why would you expect the articler hit count to be restricted to once per user or once per lifetime |
Beta Was this translation helpful? Give feedback.
-
Once per user (lifetime for the same user) on the same article would make sense like views on a post on Facebook for example. Otherwise, it is not a good idea to leave an easily incremental element in the layout, If I send multiple requests, I can make many issues. For Example:
Not all of this could happen, but that's what I thought of. |
Beta Was this translation helpful? Give feedback.
-
I think you are redefining the meaning of hits |
Beta Was this translation helpful? Give feedback.
-
How? |
Beta Was this translation helpful? Give feedback.
-
|
it is working as intended |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the clarification. I understand that the current behavior is intentional. If this is something acceptable, I would be happy to work on a PR. |
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/joomla/joomla-cms/discussions/categories/1-feature-evaluation |
Beta Was this translation helpful? Give feedback.
-
|
The hit counter is a relict from a very early version. It is not a bug - it was intended as it is many years ago - but now it is surely a candidate for improvement (performance). |
Beta Was this translation helpful? Give feedback.
-
|
This should be closed as its not a bug and moved to feature evaluation |
Beta Was this translation helpful? Give feedback.
-
|
I've moved the issue to discussions, it's a valid request. Solution needs to be discussed. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
It is expected behavior. |
Beta Was this translation helpful? Give feedback.
-
|
What is the problem you are trying to solve |
Beta Was this translation helpful? Give feedback.
-
|
The Joomla Maintainer Team decided at the 18.03.2025 meeting to reject this feature. Removing this from core is because of the useless number without any meaning and the performance impact (unneeded writes to the db). |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
I've noticed that the article hits counter increases every time a user revisits an article page, even within the same session. This seems to be happening unconditionally without any limitations.
Version
5.4
Expected result
I'm not entirely sure what the intended behavior should be, but I see a few possibilities:
Once per user lifetime – The counter should increment only once per user for each article, regardless of how many times they visit it (even across different sessions).
Once per session – The counter should increment only once per user session. If the session ends and the same user visits the article again in a new session, it would increment once more.
Current behavior (unlimited) – The counter increments unconditionally every time the article is accessed, even by the same user in the same session. (This could potentially be exploited to artificially inflate hit counts or affect layouts that display popular articles.)
Actual result
When a user visits an article, the hits counter increments by 1.
If the same user revisits the article multiple times in the same session, the counter continues to increase.
(visit article +1, go back, revisit the same article +1, and so on)
There is no apparent limitation preventing multiple counts from the same user/session.
This also happens at Preview window at the admin panel.
(Preview +1, close, Preview +1, and so on)
System Information
No response
Additional Comments
I'd appreciate clarification on which behavior is actually intended so I can better understand if this is a bug or working as designed. If it's not intended, I'd be happy to help look into a solution.
Thank you!
Rejection Information
Rejected: 18.03.2026
Reason: Comment
Beta Was this translation helpful? Give feedback.
All reactions