Basic cache library with php