caching

System.Web.Cache, Session level or Application level

Random quick question. The System.Web.Cache class, at what level is the information stored? On a per session level or whole application level? Thanks ...

Why can I see my website even though it's down?

I'm wondering if anyone knows how this happens? My website is down, but every computer on my internet connection/router can see it. I've cleared my cache etc, but another computer in the house shouldn't be seeing a site that's offline. How weird? It's hosted remotely, not on my network or anything. ...

Load an image from Firefox cache?

Hi, I'm trying to load an image from the Firefox cache as the title suggests. I'm running Ubuntu, so the location of my cache is /home/me/.mozilla/firefox/xxxxxx.default/Cache However, in the Cache (and this is on Mac, too) the filenames are just ridiculous combinations of letters and numbers. Is there a way to pinpoint a certain file? ...

What requests do browsers' "F5" and "Ctrl + F5" refreshes generate?

Is there a standard for what actions F5 and Ctrl+F5 trigger in web browsers? I once did experiment in IE6 and Firefox 2.x. The "F5" refresh would trigger a HTTP request sent to the server with an "If-Modified-Since" header, while "Ctrl+F5" would not have such a header. In my understanding, F5 will try to utilize cached content as much a...

Caching in asp.net-mvc

I would like to cache my most database heavy actions in my asp.net-mvc site. In my research I have found donut caching on Phil's blog Caching/compressing filters on Kazi's blog Scott Hansleman's podcast about how they cached things in SO. But I don't feel I get it yet. I want to be able to cache my POST request depending on several ...

Database perform advice when batch importing large datasets

I'm building a database web application using Java and Hibernate's JPA implementation. The application tracks objects. It also has to batch import objects from a legacy source. For example, let's say we're tracking people. The database has tables called Person and Address. There are corresponding JPA entity and DAO classes. On top of t...

HInclude Caching problem on Internet Explorer

Hi, I've been using HInclude (http://www.mnot.net/javascript/hinclude/) for sometime now and its working great but there is one problem though. The part of my site which is fetched using HInclude doesn't get refreshed everytime I hit the back button in Internet Exploer (6.x + and 7.0 also). It works fine on other browsers. I've tried se...

ConfigurationManager.AppSettings Caching doubt

We know that IIS caches ConfigurationManager.AppSettings so it reads the disk only once until the web.config is changed. This is done for performance purposes. Someone at: http://forums.asp.net/p/1080926/1598469.aspx#1598469 stated that .NET Framework doesn't do the same for app.config, but it reads from the disk for every request. Bu...

Do I need to enable a Service Broker endpoint on SQL 2005 to use SQLCacheDependency?

Hi All, My question really has three related parts which I hope you can help me clear up - Do I need to enable a Service Broker endpoint on SQL 2005 to use the SQLCacheDependency mechanism? If so, is there a specific port that needs to be used? If neither of the web server machine and sql server are in a domain, what type of authentic...

Let OutputCache vary by logged in user?

--Edit-- Found duplicate myself: http://stackoverflow.com/questions/290098/aspnet-mvc-caching-vary-by-authentication I have a page that does never change except for the "Welcome [username]" message in the master page. I had the [OutputCache(Duration = 60, VaryByParam = "None")] attribute on the action, but this off course caches the ...

What are some database caching options for .Net?

I see on the web there are a lot of questions about caching ASP.Net, but not a lot of discussion on caching options for a Smart Client Application and their databases. What are the data caching options that are available for Smart Client Application on the .Net framework, and how are any of you using them? Edit Enterprise Framework ...

How to call expire_fragment from Rails Observer/Model?

I've pretty much tried everything, but it seems impossible to use expire_fragment from models? I know you're not supposed to and it's non-MVC, but surely there much be some way to do it. I created a module in lib/cache_helper.rb with all my expire helpers, within each are just a bunch of expire_fragment calls. I have all my cache...

Caching Frameworks for .NET other than Velocity

What other caching frameworks are available for .NET besides the project codenamed Velocity. What are the ALT.NET options? ...

Sql cache dependency using EntLib caching block

how to implement sql cache dependency using Enterprise library application block? ...

Pattern for very slow DB Server

I am building an Asp.net MVC site where I have a fast dedicated server for the web app but the database is stored in a very busy Ms Sql Server used by many other applications. Also if the web server is very fast, the application response time is slow mainly for the slow response from the db server. I cannot change the db server as all ...

MS Velocity vs Memcached for Windows?

I've been paying some attention to Microsoft's fairly recent promoting of Velocity as a distributed caching solution that would compete with the likes of Memcached. I've been looking for a 64bit version of Memcached for Windows for some time now with no luck, and since everything about the ASP.Net MVC project I'm working on is 64bit, it...

IE 302 Redirect No-Cache Header Problem

A 302 Redirect is being returned after a post of information. This redirect is intended to reload the current page. This all works fine, but IE adds No-Cache to the header: Cache-Control: no-cache We are using Squid to cache our content, and putting this in the header bypasses squid. As this redirect is used quite often(there is no w...

What's the best way to generate environment-specific files for a Rails project?

I have some settings I need in a Javascript file -- servers to connect to -- that changes based on my environment. For development, test, and staging, I want to use the staging servers; for production, the production servers. I already have the settings in Ruby (configured in my environment/xyz.rb files). So far, I've been dynamically...

How to flush all caches in process for EntLib Caching

I'd like to know if there is a way to tell the Enterprise Library Caching objects to flush all configured caches for that process to flush. Even enumerating through all of the configured caches for that process, and manually flushing each one, is ok, but is there an API method from EntLib.Caching that will give me those values? Or do I...

ASP.NET Caching

I can't seem to get it to "work". Perhaps I'm not even testing it correctly. I've got a <%= DateTime.Now.ToString() %> line in my aspx page. I've tried setting caching declarativly like this <%@ OutputCache VaryByParam="SchoolId" Duration="180" Location="Server" NoStore="false" %> I've also tried setting it programmatically via the...