made php's get simple cache function match js one