tilde.news/script/expire_page_cache

5 lines
163 B
Bash
Executable File

#!/bin/sh
find /srv/lobste.rs/http/public/cache/ -type f -not -mmin 2 -not -name ".gitkeep" -delete
find /srv/lobste.rs/http/public/cache/ -type d -empty -delete