Prepare cache if not exisits beforehand