Updated cleancache and implemented the WasActive page flag