Back to Frontend

Purge Ajax Cache

admin/app/views/cache/ajaxDecache.scala.html

latest1.0 KB
Original Source

@(message: String = "")(implicit request: RequestHeader, context: model.ApplicationContext) @admin_main("Purge Ajax Cache", isAuthed = true) {

Purge Ajax Cache

Warnings:

  • This tool performs a soft purge of the cached content on api.nextgen.guardianapps.co.uk. This will immediately attempt to refresh the cached content.
  • If the backend service that provides the content is not healthy, stale content will continue to be served.
  • If you are trying to resolve an issue and have not already done so, please use the Troubleshoot Tool

Usage:

  1. Paste the url of the page (content) you want to clear below, including the entire url. Only works on api.nextgen.guardianapps.co.uk.
    E.g. https://api.nextgen.guardianapps.co.uk/politics/blog/live/2018/aug/01/chequers-brexit-plan-would-cost-economy-equivalent-of-500-per-head-says-thinktank-politics-live.json
  2. Click Purge to clear the page from the cache.

Purge @if(!message.isEmpty) {

@message

} }