Professional Web Applications Themes

Caching Design Issue - ASP.NET General

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 ...

  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. #2

    Default Re: Caching Design Issue

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

    Justin Dutoit

    "RMD" <rmdnospam.sorry.com> wrote in message
    news:Ox2t2bpODHA.2460TK2MSFTNGP10.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

  3. #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 pd 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" <anonanon.com> wrote in message
    news:OsVRwIrODHA.1748TK2MSFTNGP11.phx.gbl...
    > What about a parameter called Clear? Set it to 1, then you can varybyparam
    > ...
    >
    > Justin Dutoit
    >
    > "RMD" <rmdnospam.sorry.com> wrote in message
    > news:Ox2t2bpODHA.2460TK2MSFTNGP10.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

  4. #4

    Default Re: Caching Design Issue

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

    hth
    Justin

    "RMD" <rmdnospam.sorry.com> wrote in message
    news:eKaSTH0ODHA.2248TK2MSFTNGP11.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 pd 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" <anonanon.com> wrote in message
    > news:OsVRwIrODHA.1748TK2MSFTNGP11.phx.gbl...
    > > What about a parameter called Clear? Set it to 1, then you can
    varybyparam
    > > ...
    > >
    > > Justin Dutoit
    > >
    > > "RMD" <rmdnospam.sorry.com> wrote in message
    > > news:Ox2t2bpODHA.2460TK2MSFTNGP10.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

Similar Threads

  1. HTTPService caching issue? (PL/SQL backend)
    By Mush15 in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: April 16th, 08:45 PM
  2. CFMX 7 Linux Caching Issue
    By jstrzalko in forum Coldfusion Server Administration
    Replies: 2
    Last Post: December 9th, 12:17 AM
  3. PHP page caching issue
    By Tom Tsongas in forum PHP Development
    Replies: 0
    Last Post: August 21st, 12:14 AM
  4. Replies: 6
    Last Post: July 17th, 11:24 PM
  5. Is this a NET issue or just bad web design
    By George Hester in forum ASP.NET General
    Replies: 1
    Last Post: July 6th, 11:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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