Skip to content

Instantly share code, notes, and snippets.

@supermasita
Created August 6, 2021 21:38
Show Gist options
  • Save supermasita/1890a7bab928e5508c12b20aed7e61c8 to your computer and use it in GitHub Desktop.
Save supermasita/1890a7bab928e5508c12b20aed7e61c8 to your computer and use it in GitHub Desktop.
NGINX - Search for a string in cache files
# NGINX - Search for a string in cache files
# In this case, "0_rlng9eks" would be the ID of a video, which is passed in a request.
[root@server ~]# grep -ERl -m 1 "0_rlng9eks" /var/cache/nginx-vod/*
/var/cache/nginx-vod/c/8b/9af44fb9d8e8d337569e2087140ed8bc
/var/cache/nginx-vod/e/98/3f7a94cb5ce07b1995cbcd7da39fa98e
[root@server ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment