Home
Forums
New posts
Search forums
What's new
New posts
New media
New media comments
New resources
New profile posts
Latest activity
Media
New media
New comments
Search media
Resources
Latest reviews
Search resources
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Official XenForo add-ons
Media Gallery bug reports
Media Gallery resolved bugs
Deleting Ratings
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Luehrsen" data-source="post: 1489506" data-attributes="member: 210378"><p><strong>Short</strong>: Deleting a Rating-Comment does not delete the rating itself. </p><p></p><p><strong>How to reproduce:</strong></p><p>1) Leave a star-rating on a media item with a comment. </p><p>2) Delete (soft or hard) that comment with the rating from that media item. (through /media/comments/xx/delete)</p><p>3) The rating_avg and and rating_count does not update after rebuilding caches through <span style="font-size: 14px"><span style="font-family: 'Fira Code'"><span style="color: rgb(32, 33, 38)"><em>xf-rebuild:xfmg-media-items</em>.</span></span></span></p><p></p><p>The issue at hand is not a cache issue. After deleting the comment the actual rating is still present in xf_mg_rating. Hard deleting that rating from the database and flushing the caches creates the desired outcome. </p><p></p><p>It seems like the _postDelete hook in the Rating Entity is never called.</p></blockquote><p></p>
[QUOTE="Luehrsen, post: 1489506, member: 210378"] [B]Short[/B]: Deleting a Rating-Comment does not delete the rating itself. [B]How to reproduce:[/B] 1) Leave a star-rating on a media item with a comment. 2) Delete (soft or hard) that comment with the rating from that media item. (through /media/comments/xx/delete) 3) The rating_avg and and rating_count does not update after rebuilding caches through [SIZE=14px][FONT=Fira Code][COLOR=rgb(32, 33, 38)][I]xf-rebuild:xfmg-media-items[/I].[/COLOR][/FONT][/SIZE] The issue at hand is not a cache issue. After deleting the comment the actual rating is still present in xf_mg_rating. Hard deleting that rating from the database and flushing the caches creates the desired outcome. It seems like the _postDelete hook in the Rating Entity is never called. [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
Official XenForo add-ons
Media Gallery bug reports
Media Gallery resolved bugs
Deleting Ratings
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top