BUG Fix cache file deletions across subsites and on publishing.

Make the deleting function aware of subsites - files need to be deleted
from subdirectories if we are running in the subsites mode.

Also, make sure regular cache files are deleted on page modifications,
while the stale pages stay behind until the builder queue is executed.