This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"/> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <ul class="list-group row"> | |
| <li class="list-group-item col-xs-6">1</li> | |
| <li class="list-group-item col-xs-6">2</li> | |
| <li class="list-group-item col-xs-6">3</li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class HasPersonalizationCacheManager | |
| { | |
| private static readonly HasPersonalizationCache Cache = new HasPersonalizationCache(); | |
| public static bool TryGet(Item item, out bool result) | |
| { | |
| result = false; | |
| var key = GetKey(item); | |
| if (Cache.InnerCache.ContainsKey(key)) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ClearEdgeCacheHandler | |
| { | |
| private static readonly ILog Log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | |
| private const string LastUpdateTimeKey = "ItemsPublishedEventHandler_LastUpdateTimeKey"; | |
| public void ItemsPublished(object sender, EventArgs args) | |
| { | |
| var now = DateTime.UtcNow; | |
| var database = Factory.GetDatabase("web"); | |
| var fromDate = database.PropertyStore.GetDateValue(LastUpdateTimeKey, DateTime.MinValue.ToUniversalTime()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CacheControlProcessor : CacheControl | |
| { | |
| protected override void RunCacheControl(ActionExecutedArgs args) | |
| { | |
| Assert.IsNotNull(args, "args != null"); | |
| if (Sitecore.Context.Item != null) | |
| { | |
| if (HasRequestMethodGet(args) && DoesntHaveQuerystrings(args)) | |
| { |