Borrar contenido Invalido de Thunder Cache

Estimados,
Si alguno les pasa que hay ciertos videos en thundercache, que no se cachea bien, se puede usar el siguiente comando para librarnos de este problema
find . -size -1060k -exec rm {} \;
Obviamente esto tenemos que hacerlo en la carpeta de youtube de Thundercache.
Saludos
Bitfrôst.
»
- bitfrost's blog
- Login to post comments
- 4844 reads
Borrar Correctamente el Contenido
El Script de Arriba no funciona correctamente, este si:
/thunder/youtube/domain.db
sqlite3 /thunder/youtube/domain.db "select file from thunder where last_request < \"$data\" and requested = 0 limit 100;"`
sqlite3 /thunder/youtube/domain.db "select file from thunder where size < 3150282 ;"
lista=`sqlite3 /thunder/youtube/domain.db "select file from thunder where size < 3150282 ;"`
for i in $lista
do
sqlite3 /thunder/youtube/domain.db "delete from thunder where file=\"$i\""
if rm "/thunder/youtube/$i" > /dev/null
then
echo "Eliminado $i..."
fi
done