Reworked how cache works, added support to purge updated pages.