Create cache.php

for cached method in php