Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dallas 133 posts 405 karma points
    Feb 17, 2011 @ 12:05
    Dallas
    0

    Clear macro cache from api

    I have a usercontrol macro that performs a number of calculations which are displayed in a table. The calculations are based on data that is updated daily by uploading a csv. The csv is uploaded through a custom section in the Umbraco backoffice.

    This control seems like a good candidate for being cached. Is it possible to refresh the cache from the api so I can clear the cache when the new data is uploaded?

     

  • kristian schneider 190 posts 351 karma points
    Mar 04, 2011 @ 16:12
    kristian schneider
    0

    I would like to know that too

  • Daniil 10 posts 31 karma points
    Jan 17, 2012 @ 16:02
    Daniil
    1

    This might be a necropost but since I found no answer searching net, maybe this one will help somebody.

    umbraco.cms.businesslogic.cache.Cache.ClearCacheObjectTypes( "umbraco.MacroCacheContent" );            

    Taken from umbraco sources.

    http://hg.apwll.me/umbraco/src/f15d4ff81a83/umbraco/presentation/content.cs

Please Sign in or register to post replies

Write your reply to:

Draft