sudo cpanm install Sys::PageCache
Created
March 2, 2015 07:27
-
-
Save t-cyrill/416068acccdd0567632b to your computer and use it in GitHub Desktop.
nginx pagecache cleaner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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