caching

ASP.NET caching my page how do i measure how well it works?

Hi, Im getting to where i need to consider caching for my web application. Im a bit courious as to how long time i should cache the items, so i would like to make some sorts of statistics on how often i use my cache vs how often i load data from my server. How to go about doing this? Should i do this manually with data caching, like this...

Using a UIWebView with loadHTMLString/loadData breaks the back and forward buttons, workaround?

There's a known problem with embedded UIWebViews that if you load data into them using loadHTMLString or loadData, the canGoBack/canGoForward properties and goBack/goForward methods don't work. These only work when using loadRequest. Since Safari's normal app cache doesn't work in embedded UIWebViews, creating a native app that effecti...

LINQ to SQL cache issues

Long story short: I am using Linq to sql, but am having issues with its caching My application is metadata driven, so I do not want caching on (changes in the db should be reflected in the web site on a page refresh). Is there a way to turn caching off? or a way to reset the cache (for example currently when I change data in the databa...

Datanucleus/JDO Level 2 Cache on Google App Engine

Is it possible (and does it make sense) to use the JDO Level 2 Cache for the Google App Engine Datastore? First of all, why is there no documentation about this on Google's pages? Are there some problems with it? Do we need to set up limits to protect our memcache quota? According to DataNucleus on Stackoverflow, you can set the follow...

ASP.NET MVC output cache for multinenant application, vary by hostname and culture

I have a multitenant application in ASP.NET MVC. The instance of the application that will be served is function of the hostname alone (something along the lines of stackexchange, I suppose). Each instance of the application might have a different culture setting (even "auto", to read the browser's language and try to use it), and will ...

Things to avoid when coding PHP programs that work on OpCode Cachers

Hi, What kinds of things should I avoid if I want to support PHP OpCode Caches? Are static calls evil? What about __autoload? ...

ASP.NET MVC OutputCacheAttribute: do not cache if a parameter is set?

I have the following action: public class HomeController : Controller { public ActionResult Index(int? id) { /* ... */ } } I'd like to [OutputCache] that action, but I'd like that either: it doesn't use the cache if id == null; or it uses the cache if id == null but with a different duration. I think I can achieve this by: pu...

Does apc_compile_file() invalidate the in-memory cache for the particular file?

Hi, If I run the following PHP code: apc_compile_file("relative/path/to/file"); will it invalidate the in-memory cache that is used for this particular file? That is, if I first access /path/to/file, APC will compile it, and cache the OpCode in memory. Now, if I access /path/to/file again, APC will just use the cached OpCode. Howeve...

How to get Apache to serve new css file in Rails development

I finally moved to using a Linux based development server for Rails, via VirtualBox. I'm using a pre-built image that includes Apache and Passenger. Everything is great, except Apache still tries to serve an older version of css files in development mode. Even restarting the server doesn't work. I've tried clearing the browser cache ...

How do I know if image from my site is getting cached by proxy servers?

Hi all, The following is a http response header from a image on our company's website. HTTP/1.1 200 OK Content-Type: image/png Last-Modified: Thu, 03 Dec 2009 15:51:57 GMT Accept-Ranges: bytes ETag: "1e61e38a3074ca1:0" Date: Wed, 06 Jan 2010 22:06:23 GMT Content-Length: 9140 Is there anyway to know if this image is publicly cacheable...

C# Datatable Local Copy

I have an in memory DataTable in C#. I want to save a local copy of that on to my file system and retrive it . This C# datatable captures results from an excel formula and saves it. When the same excel file is opened again, I want to have the datatable loaded. This table is like a local cache that I want to reuse. Is there any other st...

Changing the Pivot Cache works fine except when 2nd pivot table is added

Hi, Using Code to change the pivot cache of the pivottable specifically: Dim pc As PivotCache, pt As PivotTable Set pt = Sheets("Sheet1").PivotTables("PivotTable1") Set pc = pt.PivotCache With pc .CommandType = xlCmdSql .CommandText = "Select * From Query1 Where Query1.Date BETWEEN #" & startval & "# AND #" & endval & "#" .Refres...

Smart (?) Database Cache

I've seen several database cache engines, all of them are pretty dumb (i.e.: keep this query cached for X minutes) and require that you manually delete the whole cache repository after a INSERT / UPDATE / DELETE query has been executed. About 2 or 3 years ago I developed an alternative DB cache system for a project I was working on, the...

NHibernate L2 Cache configuration in Fluent NHibernate

Is ti possible to configure the L2 cache provider in code via FHN? Adding a line to the following config is what I'm after: return Fluently.Configure() .Database(MsSqlConfiguration.MsSql2005.ConnectionString(c => c.FromConnectionStringWithKey("Temp")).ShowSql()) .Mappings(m => m.FluentMappings.AddFromAs...

Is my implementation of HTTP Conditional Get answers in PHP is OK?

After searching a lot, reading every tutorials I've found and asking some questions here, I've finally managed to answer corrctly (at least I think) to if-none-match and if-modified-since HTTP requests. To do a quick recap, this is what I do on every pages cacheable: session_cache_limiter('public'); //Cache on clients and proxies sessi...

Hibernate, GWT and Gilead: sessions, transactions and caches

I am writing a GWT application, using Hibernate at the server side. Right now, I am entirely confused about the correct way to transfer my objects to the client side of the GWT application in the least amount of code. I am using Gilead to avoid having to double the amount of classes in my domain model [1]. First off, my question is how ...

IIS7: set "no-cache" for all aspx pages but not images/css/js

I would like to not cache my aspx pages anywhere. For some reason IE ignores meta tags which are set from my master page <meta http-equiv="Expires" CONTENT="0"> <meta http-equiv="Cache-Control" CONTENT="no-cache"> <meta http-equiv="Pragma" CONTENT="no-cache"> I am trying to see if I can set my Http response header to "Cache-Control" -...

It seems a browser ( or is it visual studio? ) is caching a stylesheet and thus any changes I make to...

Hi I’m using a stylesheet as part of a theme and it seems that both IE and Firefox ( or perhaps VS express edition) are caching this stylesheet, since any changes I make to a stylesheet ( such as changing attribute values etc ) aren’t reflected on the displayed page. Any idea how to prevent browser or visual studio from caching this ...

Cache Managers in Enterprise Library caching Application block

Hi All, I have been using asp web cache in all my prior application developments. I am looking into Ent. Lib caching application block which seems pretty interesting. However, I have need some clarifications on how the cache managers work? 1- What is the purpose of having multiple cache managers, is it to partition cahing items ? I a...

Caching Code Location in a Domain Driven Design

In an application that has followed a Domain Driven Design where you have the following sorts of concepts A repository that deals with the DataBase access A application service that co-ordinates interactions between enties and value objects etc. where in general would you put caching code to elimenate an expensive call to the databas...