added commands to auto refresh the cached files in /tmp. but it caused resource issues. left comments in for reference.