don't expire cache dirs

There's not many of them, and there's a race condition where this script deletes
a dir at the same time the rails page cache wants to write a new file to it,
leading to 500s.
This commit is contained in:
Peter Bhat Harkins 2023-12-25 09:26:27 -06:00
parent 1caa4757d0
commit 1faa617707
1 changed files with 0 additions and 1 deletions

View File

@ -1,4 +1,3 @@
#!/bin/sh
find /srv/lobste.rs/http/tmp/cache/ -type f -not -mmin 2 -not -name ".gitkeep" -delete
find /srv/lobste.rs/http/tmp/cache/ -type d -empty -delete