Using `set_transient()` when saving a custom post type

Using `set_transient()` when saving a custom post type