Stephan
17b29357d4
U4-7040 - Fix bug with permissions cache refresh
2016-02-25 17:43:38 +01:00
Shannon
2b13297c36
Changes method name to be shorter and makes internal instead of protected.
2016-01-07 19:27:59 +01:00
Shannon
d7a142e724
Refactors DictionaryItem and DictionaryTranslation so that the attached ILanguage entity is not cached nor cloned. This will save on lots of memory and cloning cycles especially if there are quire a few dictioanry items. Unfortunatley to achieve this requires a not so pretty hack where we need to assign an internal callback to the model so it knows how to retrieve the language when it needs it. In v8, the ILanguage entity will not be attached at all. This also fixes a cache refresher issue for when a language is deleted -> all dictionary cache must be removed. This commit also changes a method name: ClearAllIsolatedCacheByRepositoryEntityType
2016-01-07 18:44:04 +01:00
Shannon
ff829d49a3
Updates all cache refreshers to reference the IsolatedRuntimeCache where required, refactors how IsolatedRuntimeCache is exposed on the CacheHelper, ensures that IsolatedRuntimeCache is used in all repositories instead of the global RuntimeCache, changes all obsolete usages of CacheHelper to the non obsolete equivalent, obsoletes many of the cache keys, obsoletes a couple cache refreshers that aren't used anymore in 7.3, simplifies CacheHelper with regards to it's 'disabled' cache state.
2016-01-06 18:08:14 +01:00
Shannon
d5c8430cd2
Removes all IRepositoryCacheProvider's, we are just using a single cache construct to which is much easier to manage.
2015-01-13 13:33:39 +11:00
Shannon
e3acdbe85b
Fixes up dictionary and language repositories to have underlying simple get repositories since they support getting by id, unique id and string variations but we want to have native repository enabled caching for these items so these get methods now use private repositories based on these keys. Adds more tests, removes N+1 queries for languages and dictionary items. Removes RuntimeCacheProvider, we only want one type of cache, this simplifies things a lot.
2015-01-13 13:25:36 +11:00
Shannon
08d4ce7667
Fixes: U4-4475 Creating new member doesn't put it in examine. Fixes up some cache refreshers to ensure they are calling the base method so that events fire consistently.
2014-03-20 12:36:13 +11:00
Shannon
690d08aa8c
Completes wrapping the new IUserService from the legacy User object. Ensures User cache is handled correctly and distributed cache is updated for Users.
2014-01-28 10:46:59 +11:00
Shannon
868edee5e6
Fixes: #U4-2161 - permissions inheritance. Fixes up how user permissions cache is invalidated and looked up (it is now lazy and not forced). User permissions are also cached as a low priority for now and only for 20 mins based on #U4-2474.
2013-07-09 11:47:46 +10:00
Shannon Deminick
296c24f829
Fixes: #U4-2042 - ensures users cannot continue to user the back office after they've been disabled and
...
ensures that the user context cache is cleared when users are saved which will work in LB environments.
Changes more HttpRuntime.Cache dependencies to ApplicationContext.Current.ApplicationCache.
2013-04-04 02:11:31 +06:00
Shannon Deminick
5f242aa3f6
Converts the media cache refresher to be a json cache refresher since it was impossible before to have media cache
...
cleared when media was deleted. Created base classes for cache refreshers, we now have a new event - CacheUpdated
which can now be used by code to execute on each individual server when any cache refresher is updated. Listening to events
normally only fire on the individual server so if people are wanting to refresh their own cache there was previously no way
to do that.
2013-03-21 22:53:58 +06:00
Shannon Deminick
f993e96547
Seals a bunch of classes that need to be
2013-03-16 09:03:26 +06:00
Shannon Deminick
ec46d65bb4
Streamlines how macro cache is handled
2013-03-12 03:00:42 +04:00
Shannon Deminick
8dc5092763
Fixes: #U4-1697 - streamlines user cache invalidation/adds new UserCacheRefresher.
2013-02-12 04:13:29 +06:00