Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

caching

C# HttpRuntime.Cache.Insert() Not holding cached value

August 29, 2022 by Magenaut

I’m trying to cache a price value using HttpRuntime.Cache.Insert(), but only appears to hold the value for a couple hours or something before clearing it out. What am I doing wrong? I want the value to stay in cache for 3 days.

Categories ASP.NET, Q&A Tags asp.net, c#, caching Leave a comment

Asp.Net Cache, modify an object from cache and it changes the cached value

August 29, 2022 by Magenaut

I’m having an issue when using the Asp.Net Cache functionality. I add an object to the Cache then at another time I get that object from the Cache, modify one of it’s properties then save the changes to the database.

Categories ASP.NET, Q&A Tags asp.net, caching Leave a comment

Right way to have ASP.NET / IIS NOT cache PDF files

August 29, 2022 by Magenaut

I have the following scenario, and I wanted suggestions on what is the best way to handle this. My web app (ASP.NET 2.0 / IIS 6) generates PDF files, and I have a results page with links to those PDFs.

Categories ASP.NET, Q&A Tags asp.net, browser-cache, caching, iis, iis-6 Leave a comment

How to use ASP.Net server controls inside of Substitution control?

August 29, 2022 by Magenaut

while the method we use in Substitution control should return strings, so how is it possible to use a donut caching in web forms on a server control which should be rendered server side?
for example Loginview control?

Categories ASP.NET, Q&A Tags asp.net, caching, donut-caching, substitution, webforms Leave a comment

Simple C# ASP.NET Cache Implementation

August 28, 2022 by Magenaut

I need to build up a List<object> and cache the list and be able to append to it. I also need to be able to blow it away easily and recreate it. What is a simple way to accomplish this?

Categories ASP.NET, Q&A Tags asp.net, c#, caching Leave a comment

Maximum length of cache keys in HttpRuntime.Cache object?

August 28, 2022 by Magenaut

We are using HttpRuntime.Cache API in an ASP.NET to cache data retrieved from a database.

Categories ASP.NET, Q&A Tags asp.net, c#, caching, dictionary Leave a comment

Is it possible to share HttpRuntime.Cache between multiple web servers?

August 28, 2022 by Magenaut

We have a web application that is storing all the site data in HttpRuntime.Cache.

Categories ASP.NET, Q&A Tags asp.net, c#, caching, webserver Leave a comment

How does ASP.NET vNext handle Caching, Compression & MimeMap in config.json?

August 28, 2022 by Magenaut

In previous versions all of these settings could be added and tweaked in the Web.Config file using something like the code below:

Categories ASP.NET, Q&A Tags asp.net, asp.net-core, asp.net-mvc, caching, compression Leave a comment

What Are the Patterns and Best Practices for Caching in ASP.NET?

August 28, 2022 by Magenaut

We are working on a large legacy application and we’re redesigning the business layer and the data layer. We believe that it is a good time to redesign the way cache is handled. Are there any patterns and best practices for implementing a caching layer (or building it in the business layer)?

Categories ASP.NET, Q&A Tags asp.net, caching Leave a comment

OutputCache VaryByCustom cookie value

August 27, 2022 by Magenaut

Is there a way to set the value of an OutputCache based on a cookie value?

Categories ASP.NET, Q&A Tags asp.net, c#, caching, cookies, outputcache Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … Page9 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress