HPCC-9017 Add new open flags and copy logic to purge pgcache periodically

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>