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?
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?
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?
I think the outputcache directive in a usercontrol is a pure asp.net thing and will work regardless of the server setup...
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.
Seems I spoke to soon.
Removing one of the services just hade it happen less offen (read every third second) instead of every second.
So time for an update.
Workaround atm is to just let one server broadcast messages making this the Edit server.
Hi! oone 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
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)
Glad to hear it. The fast release cycle sure pays off. Great work!
I can't seem to see the detail with what http://world.episerver.com/Support/Bug-list-beta/bug/118503 fixes. Is there a link with more detail?
bug list no longer beta, this link should work:http://world.episerver.com/support/Bug-list/bug/118503