Skip to content

Instantly share code, notes, and snippets.

@t-cyrill
Created March 2, 2015 07:27
Show Gist options
  • Save t-cyrill/416068acccdd0567632b to your computer and use it in GitHub Desktop.
Save t-cyrill/416068acccdd0567632b to your computer and use it in GitHub Desktop.
nginx pagecache cleaner

Setup

sudo cpanm install Sys::PageCache
#!/bin/bash
find /var/log/nginx/ -type f -name "*" -size +1000k -mmin -60 2> /dev/null | xargs pagecache-clear.pl -r 0.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment