Copied to clipboard

Flag this post as spam?

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


  • SinkyPars 132 posts 175 karma points
    Jan 29, 2013 @ 10:17
    SinkyPars
    0

    umbraco.uQuery.GetMediaByXPath(string xpath)

    Hello all,

    umbraco.uQuery.GetMediaByXPath(string xpath) is very slow on my installation.

    Has anyone else found this? Is there a better solution for getting media by XPath?

    Thanks

     

    Scott

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 29, 2013 @ 19:49
    Jan Skovgaard
    0

    Hi Scott

    What version of Umbraco are you using?

    /Jan

  • SinkyPars 132 posts 175 karma points
    Jan 29, 2013 @ 20:30
    SinkyPars
    0

    Hi Jan,

    4.9.0

    I notice caching was turned off and have turned it back on. Does the media get cached in umbraco? If so how do I rebuild it?

    Many thanks

     

    Scott

  • SinkyPars 132 posts 175 karma points
    Feb 04, 2013 @ 13:28
    SinkyPars
    0

    Hi,

    Just incase anyone else has this problem moving forward.

    Deleteing eveything in:

    \App_Data\preview

    \App_Data\TEMP\ExamineIndexes\External

    I dont know why this ifxes it so any hints would be much appreciated.

    Many thanks

     

    Scott

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 05, 2013 @ 12:44
    Jeroen Breuer
    0

    It could also be slower if you have a lot of media because the media xml isn't cached.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft