[code] implement simple post cache