Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable administrators to prompt a cache update #737

Closed
RichardTaylor opened this issue Nov 27, 2020 · 2 comments
Closed

Enable administrators to prompt a cache update #737

RichardTaylor opened this issue Nov 27, 2020 · 2 comments

Comments

@RichardTaylor
Copy link

Administrators often need to remove material from the site promptly, including legally problematic material, personal information etc.

While updates are instant for those logged in, apparently due to caching updates are not instant for non-logged in users.

This causes problems including:

  • We continue to publish problematic material for longer than necessary, potentially increasing both legal risk and harm.
  • Administrators have to either wait for the cache to update before responding to someone to say the issue has been resolved, or respond to say, rather unsatisfactorily, that the change has been made but may take time to take effect due to caching.

This ticket is proposing a web interface to whatever developers do to refresh the cache for particular pages.

It would probably ideal if any such system automatically dealt with the Welsh translation version of a page as well as the English to prevent two requests having to be made, or to prevent one from being overlooked.

Related: #588

@mdeuk
Copy link
Collaborator

mdeuk commented Dec 1, 2020

I'm adding the label 'reduce-admin' because this has the potential to reduce the administrative burden of dealing with the 'waiting time' when handling certain problematic cases where administrative action is necessary.

It's not clear whether or not we should file this upstream, or if the cacheing in this particular instance is a feature of the WDTK infrastructure, rather than Alaveteli "out of the box".

@garethrees
Copy link
Member

This ticket is proposing a web interface to whatever developers do to refresh the cache for particular pages.

We did once have some interaction between Alaveteli and Varnish, but that proved unreliable so it was removed (mysociety/alaveteli#4252).

It's not clear whether or not we should file this upstream, or if the cacheing in this particular instance is a feature of the WDTK infrastructure, rather than Alaveteli "out of the box".

I'm going to close this as the underlying cause is mysociety/alaveteli#1475. With a well-designed cache system, items would be correctly marked as stale at appropriate times and then a fresh copy should be fetched. Creating a web interface would take just as much work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants