Update getCache method

Change mktime() for time() function