Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Fragment Cache questions???

Fragment Cache questions???

Scheduled Pinned Locked Moved ASP.NET
helpdatabasediscussionsysadminperformance
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vicky457
    wrote on last edited by
    #1

    Does anybody have experiences with Fragment cache? I have some trouble here... Basically, I have 3 dropdownlists, ddlAccountGroupType, ddlGroupName and ddlAccountID in a user control. The reason I use cache varybycontrol because ddlAccountID could contain over 8000 accounts. Once the selected index is changed in ddlAccountID, it will raise event handler to trigger the parent page to retrieve Order list and allow user to edit the order details. So, I have <%@OutputCache duration="600" varybycontrol="ddlAccountGroupType;ddlGroupName;ddlAccountID" %> on my .ascx file. The problem is , sometimes, when parent page do a postback, the second dropdownlist ddlGroupname become empty when it was supposed to have one single item "--ALL--". I couldn't figure out why it happens. I read about some discussion said, under memory pressure, the cached data could be removed before it reaches its expire date. Did anyone have similiar issue? I know you can set programmatic cache NotRemovable. Is there a way to set fragement cache NotRemovable? By the way, I read something about Cache does not work with Web Farms. Although my problem happens on my local development server, but my production server does use web farm. Do anyone have any thoughts or suggestions about this? Any help would be very appreciated! Thanks in advance!

    V 1 Reply Last reply
    0
    • V vicky457

      Does anybody have experiences with Fragment cache? I have some trouble here... Basically, I have 3 dropdownlists, ddlAccountGroupType, ddlGroupName and ddlAccountID in a user control. The reason I use cache varybycontrol because ddlAccountID could contain over 8000 accounts. Once the selected index is changed in ddlAccountID, it will raise event handler to trigger the parent page to retrieve Order list and allow user to edit the order details. So, I have <%@OutputCache duration="600" varybycontrol="ddlAccountGroupType;ddlGroupName;ddlAccountID" %> on my .ascx file. The problem is , sometimes, when parent page do a postback, the second dropdownlist ddlGroupname become empty when it was supposed to have one single item "--ALL--". I couldn't figure out why it happens. I read about some discussion said, under memory pressure, the cached data could be removed before it reaches its expire date. Did anyone have similiar issue? I know you can set programmatic cache NotRemovable. Is there a way to set fragement cache NotRemovable? By the way, I read something about Cache does not work with Web Farms. Although my problem happens on my local development server, but my production server does use web farm. Do anyone have any thoughts or suggestions about this? Any help would be very appreciated! Thanks in advance!

      V Offline
      V Offline
      vicky457
      wrote on last edited by
      #2

      any suggestion would be appreciated!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups