YT Poller — Build a fast, cache-first YouTube feed (PHP + JS)
By Mayank Chawdhari — a practical guide to setup, deploy, and embed a production-ready YouTube RSS poller. TL;DR: YT Poller fetches a YouTube channel RSS feed, parses it, stores a JSON cache (atomic writes + locking), and exposes a small HTTP API (/api/get_videos.php). A themeable frontend (index.php) and a documentation/instructions page (setup.php) make integration trivial. Use a cron job to pre-warm cache and serve instant results to visitors. This post explains why this architecture is fast and SEO-friendly, how the pieces fit together, and step-by-step instructions to get it running and hosted (including static GitHub Pages usage for the docs/UI). Why YT Poller (short, practical reasons) Avoids on-demand network fetches to YouTube when visitors arrive — reduced latency…