How about run the command with "-delete" from command line as nobody user? LSWS change UID to nobody or the user that lshttpd run as before execute the shell script. I wonder if it is a permission problem.
The files are all owned by nobody (which is what I would expect). I'm going to leave it run tonight with the -x in place and the stdout log turned on. If it was a permissions issue I'd expect those messages to show up in the stdout log?
How about run the command with "-delete" from command line as nobody user? LSWS change UID to nobody or the user that lshttpd run as before execute the shell script. I wonder if it is a permission problem.
It looks like the cleancache.sh script has been totally removed from the latest builds of LSWS? We're still having issues with lots of files building up in the cache dir. This is especially a problem on VPS's where the tmp folder is pretty small (relative to a physical server).