@Techphoria414 Blog by Nick Wesselman
Two Quick Tips on Sitecore.Caching
Posted 12/13/2010 by techphoria414
There are two "gotchas" in using
Sitecore.Caching
that have come back to bite me for the last time. I'm going to write about them so that I don't forget -- and hopefully help you out too.
Read more...
Comments (0)
Loading...
Syndication
@Techphoria414 Blog
Popular Posts
Sitecore Workflow Emails with rss2email
The Sitecore Page Editor: Unleashed
The Black Art of Sitecore Custom Data Providers
Glimpse Debugging for Sitecore
Dreamcore Day 1 - Afternoon Report
Tagcloud
sitecore
powershell
language
WeBlog
page editor
TDS
rss
workflow
debugging
custom item generator
screencast
Visual Studio
builds
bugs
layout
prototypes
user groups
dreamcore
video
eviblog
url rewriter
data providers
bits on the run
caching
mvc
item editor
Archive
2013
2012
February (3)
T414 Sitecore Best Practices Part 3: Sublayout Development with Custom Items and Scriptlets
T414 Sitecore Best Practices Part 2: Solution Structure and Working with TDS
T414 Sitecore Best Practices Part 1: Introduction to TDS
March (2)
Glimpse Debugging for Sitecore
Changing Item Templates With Sitecore PowerShell
April (1)
Sitecore Workflow Emails with rss2email
May (2)
The Sitecore Page Editor: Unleashed
TDS and Sitecore.* DLLs
June (2)
WeBlog 2.2 Released
Creating a Sitecore Ribbon Button with a Dropdown Menu
August (1)
Enforcing Sitecore Languages by Site
September (1)
Use Sitecore Powershell Console to Find Templates with Layout
2011
January (2)
The Black Art of Sitecore Custom Data Providers
Bits on the Run Sitecore Module
February (1)
Using ManagedFusion URL Rewriter with Sitecore
March (1)
Quick Post: Dewplayer Not Loading in IE
April (4)
Dreamcore Day 2 Sessions and Wrap up
Dreamcore Day 1 - Afternoon Report
Dreamcore Day 1: Morning Report
See you in Boston: Techphoria414 Dreamcore Preview
May (1)
Sitecore Users Group Meetings
August (1)
Dynamic Placeholder Keys Prototype
September (3)
A Failsafe For non-Debug TDS Builds
Illegal Characters in Path Exception in Sitecore Preview
TDS and Sitecore.* DLLs
October (1)
It's On: WeBlog Summit at Sitecore HQ
2010
November (1)
EviBlog Youphoria Branch
Recent comments
Robbert Hock wrote: Hi Nick,
Great webinar! And big thanks for the Code.
I'm currently on the verge of starting a new project, where the Page Editor will be heavily used by content editors. With Insert options which should be based upon roles etc...
Still I am in the middle of deciding whether or not to use your approach of Item save events or going the John West way (through the Rules Engine) of storing the datasource as Guids (ID) and not as path (which is default).
The advantage of John's approach is I think when you have legacy renderings which already have path's as a datasource stored. So you can run the rule over and over again.
Will need to watch the webinar again to get a full understanding now that you posted the code.
Keep up the good work!
gr,
Robbert Hock
Sitecore MVP 2011
Nick Wesselman wrote: No problem Kyle. I added the April 2012 SUVG meeting and a link to the Sitecore Glimpse plugin that David Morrison created. I think it's further along than mine.
Kyle Heon wrote: Thanks for this Nick. We have an instance that uses a custom SSO and we carry along a large amount of session related information and as such we have to specifically kill access to the site when logged into the sitecore domain so getting the debugger working hasn't been very successful. This looks like it might be exactly what the doctor ordered (you file dropped in nicely, I'll see about extending it).
Nick Wesselman wrote: Hi Kevin,
Yes those changes are included in the demo code above. Basically, in the DataItem property we do a check as to whether the item is null. If it is, we set _sublayout.Visible = false. I'd also consider checking whether Versions.Count > 0 on the data item as well, especially if you are using workflow or language layers.
Nick
Kevin Williams wrote: Hey Nick, you mentioned some changes to the SublayoutParameterHelper class to prevent empty datasources from causing an unhandled exception. I think I'm running into that very issue this morning - can you post some details on that?