mikeedwards83/Glass.Mapper — pull request #71 by drachele (2014-07-11 01:07:55+00:00)
Title: Removal of the UmbracoPublishedService.

Hi Mike,

We've nearly completed the build of Umbraco site using the Glass Mapper. However, we noticed that the performance of the site was absolutely terrible. When I started to look into it, I found that it was because any calls to the Umbraco ContentService.GetPublishedVersion(int) were not fetching content from the cache - they were going directly to the SQL database every time!

To test this, I changed the code back to use GetById(int) and monitored calls to the DB - they dropped dramatically - and the performance of the site is back to normal.

I've removed the UmbracoPublishedService, as I don't think it's a good idea to have this hanging around. I also noticed that the MVC templates were tied to using it, which wasn't ideal at all.

I hope this isn't too much of a pain for you!

Thanks,

Dan.