Ignoring cache/ directory. Changed digest() to hexdigest().