Added return value to indicate success of emptyDirectory
removed unused global "PROFILER"
Added purge to phpfile persistence
Connected filecache to the phpfile persistence