SaaS CMS has officially launched! Learn more now.

Outputcache not working on prod



I added [ContentOutputCache] to my controls I wanted to cache and everything is working on test. 

Moving on to prod the page doesn't get cached. Been reading this excelent post [link removed by moderator] by Mattias Löström and it seems I have something updating the db because the expire time in the web page header is correct (Now + cache time) but @EPiServer.CacheManager.Get("DataFactoryCache.Version") gets updated for each request.

Now the question is where do I go from here? How to I find what could be updating the db?

Prod is loadbalanced so was considering if it could be that but it should only send updates if the page is saved right?

Anyone got any ideas what to check?

Edited, Jun 23, 2014 19:55


Removing the RemoteEventServiceEndPoints got it working.. so... Then I guess the question has evolved to. What is needed to make OutputCache work on a Loadbalanced enviroment?

Jun 23, 2014 19:59

I don't have access to prod at the moment so just running some ideas by the community while I wait for my slot.

As of 7.5 we no longer add a <site> definition in the episerver.config. Does this also mean that I no longer add more then one RemoteEvents service on the webconfig?

Jun 24, 2014 10:23

I think the outputcache directive in a usercontrol is a pure thing and will work regardless of the server setup...

Jun 24, 2014 10:49

Well it is and it isn't =)

EPiServer does some magic of it's own. But relies on the outputcache in MVC in the background. 

The issue for me was that the DataFactoryCache wsa getting updated so Epi told the outputcache to serve a new version all the time. This because the RemoteEvents was wrong.

Apparently you only need one service per site now that the sites are added within the Admin mode. Removing the second one we had (had two sites and was using TCP) made the cache work. Initial testing also seems to show that the cache for the second site still gets updated. So seems to work.

Jun 24, 2014 11:11

Seems I spoke to soon. 

Removing one of the services just hade it happen less offen (read every third second) instead of every second.

Jun 24, 2014 13:30

So time for an update.

The issue seems to go away when I remove the third server. So two servers running either udp or tcp works fine. The cache holds.
Adding a third makes the datafactory cache jump.
Jun 24, 2014 17:36

Workaround atm is to just let one server broadcast messages making this the Edit server.

Jun 25, 2014 18:21

Hi! o
one loose thought, are there other sites (cms 6) running in parallel on the servers? Try changing your portnumber in the 7.5 config to 5050 or something other than 5000

Oct 14, 2014 11:12

Oct 15, 2014 9:19

I can confirm that we have found and fixed a bug that effects output cache. The fix is planned to be released in upcoming 7.15.0 release (soon available)

Oct 16, 2014 9:58

Glad to hear it. The fast release cycle sure pays off. Great work!

Oct 16, 2014 10:17

I can't seem to see the detail with what fixes.   Is there a link with more detail?

Jan 05, 2015 19:51

bug list no longer beta, this link should work:

Jan 07, 2015 8:44
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.