macbookandrew / wp-youtube-live

Displays the current YouTube live video from a specified channel
20 stars 12 forks source link

[Feature request] Manual trigger URL admin/editor can visit to set off a fetch of YouTube API #14

Closed HongPong closed 4 years ago

HongPong commented 4 years ago

Hi,

I would like to request a feature where an authenticated administrator / editor user, can visit a special URL on their browser, which would trigger an immediate fetch of the channel state from YouTube (instead of waiting for 15 minutes to conserve quota). This way someone managing WP and live video can kick off the process by hand. The interface could also be a button but I think an admin/editor visiting a trigger URL would be optimal.

I might be able to program this myself - I could look into it in the next couple weeks.

Thanks for this interesting plugin, looking forward to really getting into how it works.

macbookandrew commented 4 years ago

@HongPong Added in the latest release a button to flush the cache, so the next request will fetch fresh data; see screenshot of the admin:

Screen Shot 2020-07-07 at 21 23 51

HongPong commented 4 years ago

That is so cool cheers!!