Updated deleting required files to fix memory leak (#46)
Updated deleting required files to fix memory leak (#46)

Simply delete require.cache[module] results in a memory leak after some time as the deleted module is still referenced in require.cache[module].parent.children, preventing it from GCing. The new function will allow it to GC properly.
An-Idiots-Guide/guidebot