Admin options and info sometimes missing from comments section

Description

When you're logged in as an admin with the proper permissions and you access the comments section on a work or news post, sometimes all of the following are missing on all of the comments:

  • the IP address

  • the Delete button

  • the Spam button

Notes

  • This has been happening since long before admin roles existed.

  • It does not just happen for one admin at a time.

  • It might only happen when you've loaded the comments with AJAX, as opposed to using the ?show_comments=true#comments URL. Even if it doesn't only happen then, it will often happen with the AJAX-loaded comments while not happening with the ?show_comments version.

  • Sometimes the newest comments will also be missing.

This might be related to AO3-5591, since it has the same workaround: Follow the "Thread" link on the specific comment you want to see the IP Address or use the Delete or Spam button for. When you are viewing the thread separately, all of the buttons and info appear.

Activity

Show:
ticking instant
December 29, 2020, 5:19 PM

I think this might caused by the nginx configuration (though I’m not 100% sure). The Cache-Control header for most of the site while logged-out appears to be:

The Cache-Control header for dynamically loading comments while logged-out appears to be:

The nginx setup overrides most of the Cache-Control headers from rails, so if I had to guess, I’d say that the 10 minute cache probably comes from nginx.

Assignee

Unassigned

Reporter

Sarken

Roadmap

Comments

Priority

Medium

Affects versions

Fix versions

None

Components

BackEnd
Caching
FrontEnd

Difficulty

Medium

Required Access Level

Admin

Milestone

Internal 0.9