Bugfix
Added some debugging code to be removed later.
Fixed a bug that prevented the main page cache to be updated properly when a new post was posted.