caching

How can I manually add assemblies to IIS's caching system?

My web service needs to access classes from external assemblies. The names of the external assemblies are only known at run time. Because the external assemblies are not explicitly referenced by the web service at compilation time, they are not cached by IIS. The result is that these assemblies are left in the web service's root director...

ASP.NET Cache and File Dependancies

I want a ASP.NET cache item to be recycled when a specific file is touched, but the following code is not working: HttpContext.Current.Cache.Insert( "Key", SomeObject, new CacheDependency(Server.MapPath("SomeFile.txt")), ...

CSS/Jscript caching issue

Hi, I'm pretty new to web design and have recently been working on an amatuer photography website. I updated it on Sunday night, cleared cache etc on my home computer and it was all looking fine. The problem is when I checked it from work, behind corporate firewall etc, some of the pages have changed, some have not. For example the h...

Safari Cache size for iPhone 3.0

Various sites on the internet claims that Safari cache on iPhone 2.2 is 25k and 19 objects. Does anyone know what is the cache size for Safari/webview on iPhone 3.0. ...

clearing xsl image cache

I have an xsl:fo style sheet that refers to a URL which is an image. Throughout my code, I change the jpg file that the URL points to. I then wish to use the xsl to create a pdf, and want it to include whichever file is currently at the URL. However, XSL caches the images, such that once a PDF is created, and the image is changed, the...

Is hibernates caching mechanism implemented so that it can be (if configured properly) a short term 'replacement' for the db behind it?

Meaning that I would like to load a set of objects and have the cache used exclusively when different queries that operate on that data object or set of objects instead of letting queries 'leak back' to the database. If the answer is yes, which cache provider offers this or do all of them and what configuration parameters do i need to be...

Can you configure mod_proxy as a reverse proxy cache?

I can configure mod_proxy to be a forward proxy cache and I can configure it to be a reverse proxy. Is there any way to configure it to be a reverse proxy cache? I haven't had any luck with that yet. ...

Why the Rails.cache.read can't get anything in ApplicationController?

Hi~ I had a problam, Ruby on Rails Cache in ApplicationController. The data can't get,but it's exist. class ApplicationController < ActionController::Base before_filter :init def init @setting = Rails.cache.read("data/setting") if not @setting @setting = Setting.find_create Rails.cache.write("data/setting",@sett...

Memcached vs APC which one should I choose?

I ready this article: http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/ from way back when.. I want to get the best cacheing engine available so that my application is really fast. Of cource I don't want to overcache but I want to at least choose the best thing out there. In that article it says memcached is slow and apc i...

Is there a decorator to simply cache function return values?

Consider the following: @property def name(self): if not hasattr(self, '_name'): # expensive calculation self._name = 1 + 1 return self._name I'm new, but I think the caching could be factored out into a decorator. Only I didn't find one like it ;) PS the real calculation doesn't depend on mutable values ...

Problems with Cache in Firefox when i upload my app to web server

Hi there, Can anyone help? I have been designing a site using Javascript but the rest of the html content is static ie. images etc When i load my page in Firefox i have to clear the cache.. I remember a long time ago there was something you could add to the html to force a reload. My question is, is this a good thing? I presume it ca...

Information on N-way set associative Cache stides

Several of the resources I've gone to on the internet have disagree on how set associative caching works. For example hardware secrets seem to believe it works like this: Then the main RAM memory is divided in the same number of blocks available in the memory cache. Keeping the 512 KB 4-way set associative example, the main...

Are there any Caching Frameworks for Delphi?

Question: What Caching Frameworks available for Delphi and how well developed are they? If there aren't any then is there a widely-accepted way of achieving the same objective? Applicable to Win32 targeting versions of Delphi. Question Detail: The type of framework that I'm enquiring about exists largely in Web Development frameworks al...

Type Caching

I have this scenario: i have a assembly with my business object types and this assembly is loaded with reflection at runtime(Assembly.LoadFile) in WCF with KnownTypesProvider but this assembly maybe can change (some developer add a new method or new property o even change some functionality maybe bugfix) but using Assembly.LoadFile the ...

What takes precedence: the ETag or Last-Modified HTTP header?

For two subsequent requests, which of the following two headers is given more weight by browsers should one of them change: ETag or Last-Modified? ...

All Children in Child Collection Not Loading When Parent is Found Through Child Values

OUR PROBLEM: If the user which sould be notified is in the requested List ("users") it's Address Association is initialized with the query provided above. If we call the NotifyUser-Method the Address Association should be initalized with all Addresses of the user, but in this case the Address-Association is cached, and we only get the A...

How to clear MSIE/WinInet cache programatically?

I'm trying to clear out the WinInet cache using Win32 API - by invalidating the cache entries, or deleting them (doesn't matter). I can't find any way to do this for the whole cache (other than iterating over each entry - example in C#, another in VB) - is this even possible? ...

How granular should data in memcached be?

Something I'm curious about.. What would be "most efficient" to cache the generation of, say, an RSS feed? Or an API response (like the response to /api/films/info/a12345). For example, should I cache the entire feed, and try and return that, as psuedo code: id = GET_PARAMS['id'] cached = memcache.get("feed_%s" % id) if cached is not N...

How to measure Django cache performance?

I have a rather small (ca. 4.5k pageviews a day) website running on Django, with PostgreSQL 8.3 as the db. I am using the database as both the cache and the sesssion backend. I've heard a lot of good things about using Memcached for this purpose, and I would definitely like to give it a try. However, I would like to know exactly what w...

How To Implement A PHP/HTML Cache

I've read several guides on implementing a php cache system (my site is custom coded, fairly query heavy and growing) including this one: http://www.snipe.net/2009/03/quick-and-dirty-php-caching/ I understand them fully but there are certain parts of the page that I can't cache, what's the best way to go about doing that? ...