Copied to clipboard

Flag this post as spam?

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


  • MuirisOG 382 posts 1284 karma points
    Jul 14, 2017 @ 15:31
    MuirisOG
    0

    What are the files umbraco-plugins.*.hash and umbraco-plugins.*.list used for?

    Hi

    I'm hoping someone may know what these two files do:

    umbraco-plugins.<myservername>.hash
    umbraco-plugins.<myservername>.list
    

    Thanks

    Muiris

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Jul 14, 2017 @ 15:45
    Nicholas Westby
    0

    To cache info about assemblies and installed plugins for quicker startups (e.g., on application pool recycles). See comment on this ticket: http://issues.umbraco.org/issue/U4-803

    You can see where they are used in this file: https://github.com/umbraco/Umbraco-CMS/blob/9badb35c054ecc91630b69b1b6753c78427cb4a6/src/Umbraco.Core/PluginManager.cs

  • MuirisOG 382 posts 1284 karma points
    Jul 14, 2017 @ 16:33
    MuirisOG
    0

    Thanks Nicholas

    without really knowing why, I've been removing the entry for anything I've put in app_code for our own custom backoffice stuff from the trees.config anytime I got a YSOD. After recompiling, I removed the random set of characters appearing after App_SubCode_CSCode in the trees.config entry.

    Now I know I've got to do that in these two files as well. Hopefully it might stop me getting a YSOD until I get a chance to look at this in more detail.

    Thanks again

    Muiris

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Jul 14, 2017 @ 16:53
    Nicholas Westby
    100

    In general, you should avoid using App_Code (at least, I do). You can simply put anything that would go there into a class library instead. Might save you a few headaches.

  • Martin Aguirre 42 posts 210 karma points
    Jul 18, 2017 @ 19:31
    Martin Aguirre
    0

    Sorry for the intromission but: Headaches like which ?

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Jul 18, 2017 @ 19:50
    Nicholas Westby
    1

    Off the top of my head, waiting extra time for it to compile at runtime, funky namespace issues, lack of intellisense in Visual Studio, and potential application pool recycles due to excessive recompilations. I think there are some other subtle issues, but those are the ones I have a vague recollection of.

  • MuirisOG 382 posts 1284 karma points
    Jul 17, 2017 @ 10:43
    MuirisOG
    0

    Nicholas

    is there a quick guide on how to do that?

    Thanks

    Muiris

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Jul 17, 2017 @ 15:00
    Nicholas Westby
    0

    is there a quick guide on how to do that?

    Will answer that here since you've asked the question elsewhere: https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/86927-app_datatempplugincacheumbraco-pluginsmyservernamelist-is-denied

Please Sign in or register to post replies

Write your reply to:

Draft