Caching Design Issue

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Caching Design Issue

    I am creating a portal that uses UserControls as each "portlet". Each of
    these UserControls is autonomous in the sense that whether or not they are
    loaded is determined completely at runtime, and they are independent
    mini-applications. So far, so good.

    Each of these UserControls has a title bar (just like in windows) that has a
    nifty little menu. What I would like to do is have an item on this menu
    called "Refresh" which forcefully clears the output cache for a particular
    portlet.

    I'm hoping that I can do something like capture the "Refresh" menu item
    event and pass that information to the containing page, which then does
    something like "somePortlet.Cache.Clear()".

    I've investigated the various "VaryBy" mechanisms, and I'm not sure how I
    can use these to accomplish what I want.

    Thanks,
    RMD


    RMD Guest

  2. Similar Questions and Discussions

    1. HTTPService caching issue? (PL/SQL backend)
      Have you tried using a bound array collection. It sounds more like binding issues.
    2. CFMX 7 Linux Caching Issue
      I am the administrator for a Linux server running CF MX 7. Runs great except for one thing (which is rather large). The server houses a website...
    3. Web design issue- please help
      Hi All, I am an intermediate level of web designer. I would like you to give me some advice on web design issues; i.e. if someone needs to...
    4. PHP page caching issue
      Hi folks. I have an interesting problem with regards to some PHP pages of mine. Basically, I have a form page where the user is able to use list...
    5. OO Design question for Net::HTTP caching extension
      I'm in the process of writing an HTTP-1.1 extension to Net::HTTP. At the moment, I'm replacing Net::HTTP#get with a version that will check for a...
  3. #2

    Default Re: Caching Design Issue

    What about a parameter called Clear? Set it to 1, then you can varybyparam
    ....

    Justin Dutoit

    "RMD" <rmd@nospam.sorry.com> wrote in message
    news:Ox2t2bpODHA.2460@TK2MSFTNGP10.phx.gbl...
    > I am creating a portal that uses UserControls as each "portlet". Each of
    > these UserControls is autonomous in the sense that whether or not they are
    > loaded is determined completely at runtime, and they are independent
    > mini-applications. So far, so good.
    >
    > Each of these UserControls has a title bar (just like in windows) that has
    a
    > nifty little menu. What I would like to do is have an item on this menu
    > called "Refresh" which forcefully clears the output cache for a particular
    > portlet.
    >
    > I'm hoping that I can do something like capture the "Refresh" menu item
    > event and pass that information to the containing page, which then does
    > something like "somePortlet.Cache.Clear()".
    >
    > I've investigated the various "VaryBy" mechanisms, and I'm not sure how I
    > can use these to accomplish what I want.
    >
    > Thanks,
    > RMD
    >
    >

    Justin Dutoit Guest

  4. #3

    Default Re: Caching Design Issue

    Well that's the problem. First, I don't want to use query string variables
    if I can avoid it. (I currently have a very pretty and bookmarkable URL
    that's parsed by an HTTP Module.)

    Second, querystring variables, as you know, are page-wide... but this is a
    per-usercontrol cache. I don't want to clear the cache of all usercontrols,
    just specific ones.

    I guess I'm confused as to how varybyparam works with usercontrols versus
    pages. Wouldn't I have to have a unique querystring variable for each
    usercontrol to look at? How would I do this if I can't necessarily know what
    controls I going to be on the page until runtime. I suppose I could mandate
    GUIDs for VaryByParam, but that seems kinda hacky.

    RMD

    "Justin Dutoit" <anon@anon.com> wrote in message
    news:OsVRwIrODHA.1748@TK2MSFTNGP11.phx.gbl...
    > What about a parameter called Clear? Set it to 1, then you can varybyparam
    > ...
    >
    > Justin Dutoit
    >
    > "RMD" <rmd@nospam.sorry.com> wrote in message
    > news:Ox2t2bpODHA.2460@TK2MSFTNGP10.phx.gbl...
    > > I am creating a portal that uses UserControls as each "portlet". Each of
    > > these UserControls is autonomous in the sense that whether or not they
    are
    > > loaded is determined completely at runtime, and they are independent
    > > mini-applications. So far, so good.
    > >
    > > Each of these UserControls has a title bar (just like in windows) that
    has
    > a
    > > nifty little menu. What I would like to do is have an item on this menu
    > > called "Refresh" which forcefully clears the output cache for a
    particular
    > > portlet.
    > >
    > > I'm hoping that I can do something like capture the "Refresh" menu item
    > > event and pass that information to the containing page, which then does
    > > something like "somePortlet.Cache.Clear()".
    > >
    > > I've investigated the various "VaryBy" mechanisms, and I'm not sure how
    I
    > > can use these to accomplish what I want.
    > >
    > > Thanks,
    > > RMD
    > >
    > >
    >
    >

    RMD Guest

  5. #4

    Default Re: Caching Design Issue

    Maybe you could make a token change to some data the user control depends
    on.

    hth
    Justin

    "RMD" <rmd@nospam.sorry.com> wrote in message
    news:eKaSTH0ODHA.2248@TK2MSFTNGP11.phx.gbl...
    > Well that's the problem. First, I don't want to use query string variables
    > if I can avoid it. (I currently have a very pretty and bookmarkable URL
    > that's parsed by an HTTP Module.)
    >
    > Second, querystring variables, as you know, are page-wide... but this is a
    > per-usercontrol cache. I don't want to clear the cache of all
    usercontrols,
    > just specific ones.
    >
    > I guess I'm confused as to how varybyparam works with usercontrols versus
    > pages. Wouldn't I have to have a unique querystring variable for each
    > usercontrol to look at? How would I do this if I can't necessarily know
    what
    > controls I going to be on the page until runtime. I suppose I could
    mandate
    > GUIDs for VaryByParam, but that seems kinda hacky.
    >
    > RMD
    >
    > "Justin Dutoit" <anon@anon.com> wrote in message
    > news:OsVRwIrODHA.1748@TK2MSFTNGP11.phx.gbl...
    > > What about a parameter called Clear? Set it to 1, then you can
    varybyparam
    > > ...
    > >
    > > Justin Dutoit
    > >
    > > "RMD" <rmd@nospam.sorry.com> wrote in message
    > > news:Ox2t2bpODHA.2460@TK2MSFTNGP10.phx.gbl...
    > > > I am creating a portal that uses UserControls as each "portlet". Each
    of
    > > > these UserControls is autonomous in the sense that whether or not they
    > are
    > > > loaded is determined completely at runtime, and they are independent
    > > > mini-applications. So far, so good.
    > > >
    > > > Each of these UserControls has a title bar (just like in windows) that
    > has
    > > a
    > > > nifty little menu. What I would like to do is have an item on this
    menu
    > > > called "Refresh" which forcefully clears the output cache for a
    > particular
    > > > portlet.
    > > >
    > > > I'm hoping that I can do something like capture the "Refresh" menu
    item
    > > > event and pass that information to the containing page, which then
    does
    > > > something like "somePortlet.Cache.Clear()".
    > > >
    > > > I've investigated the various "VaryBy" mechanisms, and I'm not sure
    how
    > I
    > > > can use these to accomplish what I want.
    > > >
    > > > Thanks,
    > > > RMD
    > > >
    > > >
    > >
    > >
    >
    >

    Justin Dutoit Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139