DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

I can not CLEAR CACHE for All

You are not authorized to post a reply.

New Around Here


    I'm using Output Cache Provider for Page Setting, and set cache Duration 6000 seconds

    So now, i had try using some function for clear cache, but not working



    DataCache.ClearPortalCache(PortalSettings.PortalId, true);

    And also, I try find in Scheduler for clear cache

    var portals = PortalController.Instance.GetPortals();
                    foreach (KeyValuePair kvp in OutputCachingProvider.GetProviderList())
                            foreach (PortalInfo portal in portals)
                                ScheduleHistoryItem.AddLogNote(string.Format("Purged output cache for {0}.  ", kvp.Key));
                        catch (NotSupportedException exc)
                            //some output caching providers don't use this feature


    Not working too. Because i do not permission for user can login Server, so i want creat one button for clear cache all my portal.

    I mean, i want creat button like 


    New Around Here

      Anybody help me?

      New Around Here

        I want create button like this on my Module.
        anb help me! I has find all Hostcontroller and PerformanceController
        But they 're not working for me

        Veteran Member

          AFAIR, clear cache does clear DNN input cache (database results), not output cache.
          output cache should be activated for static, non-personalized content only.
          You are not authorized to post a reply.

          These Forums are dedicated to the discussion of DNN Platform.

          For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

          1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
          2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
          3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
          4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
          5. No Flaming or Trolling.
          6. No Profanity, Racism, or Prejudice.
          7. Site Moderators have the final word on approving / removing a thread or post or comment.
          8. English language posting only, please.

          Would you like to help us?

          Awesome! Simply post in the forums using the link below and we'll get you started.

          Get Involved