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
danielbachhuber commented
I'll do a first pass on this, then hand off for review when ready.
danielbachhuber commented
@kibra @ari-gold The README is now ready for a read + feedback: https://github.com/pantheon-systems/pantheon-integrated-cdn#pantheon-integrated-cdn