pantheon-systems/pantheon-advanced-page-cache

Create developer API for emitting surrogate keys and triggering PURGE's

kibra opened this issue · 2 comments

kibra commented

APIs:

  • pantheon_wp_clear_edge_keys( $keys )
  • pantheon_wp_clear_edge_paths( $paths )
  • pantheon_wp_clear_edge_all()

Documentation:

  • Each of the API functions you can use.
  • How to emit your own surrogate keys.
  • How to trigger your own purge events.
  • Determine sidebars rendered on a page, and purge the sidebar when widget is updated.
  • Determine options in use on a page, and purge the option surrogate key when it's updated. Related #15

I'll do a first pass on this, then hand off for review when ready.