Fix when file exists but not yet cached by APC (added few attempts)

If we cant fopen file just make few attempts with sleep a bit.