caching

Caching linq-to-sql results?

Most will recommend caching as a list. I know that is a solution and may be the one I go with. But, what if one wants to be able to treat a cached linq-to-sql with full IQueryable (IEnumerable?) functionality? If one does try to cache the raw result, an error "Query results cannot be enumerated more then once". So, to make clear my que...

"C" programmatically clear L2 cache on Linux machines

What would be the programmatic steps written in "C" associated with clearing the L2 cache on a Linux OS machine? /sys/devices/system/cpu/cpu0/cache/index2/size = 6144K x 8CPUs ...

Cache Manager for ASP.NET

Hi Guys, I would like to integrate a Cache Manager in an ASP.NET application. Basically I would like a page that would display what's in the cache and let me delete specific items or clear the whole cache. Ideally I would like as much information as possible, such as how long it's been in the cache for, the hit count, the size of the ob...

How to disable proxy caching with .htaccess

I have a problem where corporate proxy servers serves up the page for different logged in users. I reckon I can solve this issue by disabling proxy caching. This page suggests including the following snippet in htaccess: ExpiresDefault A0 Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0" Header set Pragma "no-cac...

Disable rails class_caching mechanism for Time.now?

Hey there, I'm currently fighting with the rails class_caching mechanism as I need to return a file path that changes discrete over time. It is used to constantly change a log file path after the amount of GRAIN seconds and returns a fully working timestamp: GRAIN = 30 def self.file_path timestamp = (Time.now.to_i / GRAIN) * GRAI...

Connection strings - what is actually being cached?

Hi, I have started running the profiler tool in VS to see the bottlenecks in my code. In the debug mode, before I actually get to doing something, there are about 30 requests to read the connection string from the registry. There is a variety of reasons for storing the connection string in the registry and this can't be modified. My q...

client-side file caching

Hi, If I understand correctly, a broswer caches images, JS files, etc. based on the file name. So there's a danger that if one such file is updated (on the server), the browser will use the cached copy instead. A workaround for this problem is to rename all files (as part of the build), such that the file name includes an MD5 hash of i...

Way to storage object without rdbms or plain file with Java

Hello, first of all sorry for my English is not my native language. I have a web form input field and a servlet (Clustered Weblogic AS) which receives the contents of this input. I would like to limit the attempts given the same value without using rdbms or plain text file, eg // Getting value of form String input = request.getParameter...

How to cache and retrieve images generated on the fly by an Apache Tomcat Server?

Hi, all, I'm working on a web-app project which involves allowing the user to view several hundred small images of roughly the same size, many of them several times. These images are generated on the fly by passing URL strings (specifying height, width, file format, and content) to a service running on an Apache Tomcat server; the URL s...

How to cache XML url?

I am retrieving an XML string through a URL. My code works great, but I do not know how to add caching to it. I am not sure if I am able to cache XML streams or if that is even the right approach. What is the best way to add caching here? XmlTextReader xmlTextReader = new XmlTextReader(this.RssUrl); XmlDataDocument xdoc1 = new XmlDataDo...

Can you store the entire jQuery library within the application cache in HTML5?

Thats pretty much it. Looking for best practice with mobile jQuery caching. Thanks for the help in advance. ...

Make an ASP.NET MVC application Web Farm Ready

What will be the most efficient way to make an ASP.NET MVC application web-farm ready. Most importantly sharing the current user's information (Context) and (not so important) cached objects such as look-up items (States, Street Types, counties etc.). I have heard of/read MemCache but haven't seen a simple applicable way (documentatio...

PHP RSS caching

Hello, I was looking for a solution on caching RSS feeds in PHP. I was planning to do the parsing with Magpie RSS parser (http://magpierss.sourceforge.net/). But then how could I go about caching feeds (in case sometimes feed provider won't let me read the same feed, etc.)? Regards. ...

connectivity for php with intersystems CACHE

Hi i am developing a website in that i would like to use intersystems CACHE for database , i use DSN to connect with CACHE , but it shows the error as follows Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLCon...

What are best practices for snappy mobile I/O on slow connections?

I have a mobile app, which is pretty data driven, though only through text and images. In the current version each click or touch requires pulling new data from the server (appache/php). With network delay this easily takes 1-2 seconds for the first content to appear, which is far too long. I have heard about and considered the followin...

How to develop a VS2010 Silverlight Business Application without it caching the .xap file?

In Visual Studio 2010 I've created a Silverlight app by choosing the "Silverlight Business Application" template. I changed some code in Home.xaml.cs, closed Visual Studio, opened it again, and began making more changes. But now the changes that I make to the code don't take effect at all. It's as if the entire application is cached. I...

How to cache results

I heard that a lot of big project administrators caches results. I wonder how do I do it? Thanks I'm using PHP. ...

HTML5 cache - retrieve list of cached pages

Hi - I have some questions about usage of HTML5 Cache, hopefully someone can provide some help. I have a web app where a user can query info about reservations they have made. I'd like to use the HTML5 Cache so that when a user queries a reservation, the results page will be cached offline. I want this so the user can quickly view the r...

Caching options in Python or speeding up urlopen

Hey all, I have a site that looks up info for the end user, is written in Python, and requires several urlopen commands. As a result it takes a bit for a page to load. I was wondering if there was a way to make it faster? Is there an easy Python way to cache or a way to make the urlopen scripts fun last? The urlopens access the Amazon ...

Tomcat Caching Something

Hi all, I am learning spring MVC and developing some basic web applications and running over Tomcat. The changes i made did not effect fastly and that makes me angry, i fed up with restarting server, or cleaning projects bla bla (right click server and select clean). Is there any way to say not to cache anything preventing the effect ...