When I give a rating for a piece of content, I expect the page to reload and to show me a star rating for that article which takes into account the score I gave it.
What actually happens is that the cached version of the page is served, and so I just see the same score as before. If it wasn't rated before, this means that I still see "No ratings yet" even though I also have a message on the page saying thank you for rating this article.
Tested with an up-to-date Joomla version (3.8.13).
The fix would seem to be to add some code to the ratings feature to make it flush the cache for the current article when a rating is saved.
Labels |
Added:
?
|
Labels |
Added:
J3 Issue
|
Status | New | ⇒ | Information Required |
Hi Franz. I've just re-tested it on the latest version (3.9.3) and yes, the problem remains the same.
@Spudley thanks for test again > @HLeithner can you please comment?
There is a partially implemented Joomla\CMS\Cache\CacheStorage::flush()
method, that should probably be exposed through Joomla\CMS\Cache\Cache
too.
But that's overkill for this. A vote operation needs to clean the com_content
cache group and the cache for relevant modules. Essentially, the frontend article model needs to have the storeVote
method call $this->cleanCache()
and the extended cleanCache()
method from the admin article model copied to the frontend class to ensure all appropriate groups are cleaned.
Status | Information Required | ⇒ | Discussion |
Category | ⇒ | com_content |
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-06-14 09:01:13 |
Closed_By | ⇒ | franz-wohlkoenig |
does this Issue exist on latest Version?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22858.