lostdreamer - 10:54 am on Mar 15, 2012 (gmt 0)
Can I ask what you are trying to do here?
Because it looks like the following flowchart:
1) Run all scripts and create output
2) Check MD5 of newly created output against MD5 of cached output
3) ? Wouldn't really mather
Where would you get any positive caching effects if you are running your scripts anyway?
IE: If you code has only this:
It will sleep 100 seconds with or without caching enabled.
If you have code that checks millions of rows in your DB, it will still have to do that every single time.
Only differents is that IF something is new, you write it to a file as well.
So this way would actually be slower then just running your original script.