moved custom cache test for php 5.3+