Updated wp cache integration based on rewrite rule functionality.