Just thinking… another option could be to give sample
an option to refresh the cache for that particular folder, then you wouldn’t have to lose the cache for other folders that might not be likely to change. Something like:
live_loop :foo do
sample "/path/to/unchanging/samples", 3
sample "/path/to/changing/samples", 42, refresh_cache: true
sleep 1
end