I have some custom classes that affect my stylesheet(s), and I'm having trouble figuring out how to clear the CSS cache and/or trigger the stylesheet's dynamic code to be re-processed.
I've tried via the CacheHelper:
CacheHelper.ClearCSSCache();
I've tried touching the cache keys of the stylesheet:
CssStylesheetInfoProvider.GetCssStylesheetInfo(SiteContext.CurrentSite.SiteDefaultStylesheetID).TouchKeys()
Neither seem to have an effect -- any ideas on what I'm missing?
Thanks, Stephen
Hello,
according to our documentation, please use following code instead:
CacheHelper.TouchKey("cms.cssstylesheet|byname|<styleheetname>");
Best regards, Jan Hermann.
This may clear the cache for the GetResource and GetCSS pages, but it doesn't seem to reprocess the StylesheetDynamicCode to reproduce what's stored as StylesheetText.
Please, sign in to be able to submit a new answer.