Added function to rebuild single page cache on resource save