cache timestamp working

Now definitly working! Variable only used when needed.