add cache to postgres ext
remove date context_processer