caching

web application session cache

I want to cache data for a user session in a web application built on struts.What is the best way to do it .Currently we store certain information from the DB in java objects in the user's session .Works fine till now but people are now concerned about memory usage etc. Any thought on how best to get around this problem. ...

SharePoint Content Editor CSS customization caching

When SharePoint's content editor CSS file (HtmlEditorCustomStyles.css) is customized how can I get the updated css file updated on the client browser? In testing I've found the updated version is ignored in favor of the browser cached version and I've only been able to get the updated version by deleting the CSS file from the browser ca...

What's the best caching mechanism to use for .Net web applications?

What caching mechanism should I use for a .Net web application? Memcached seems to be the best for the LAMP stack and Linux in general, but I'm not so sure that it's the answer for a .Net web application running on Windows. My requirements are that it be distributed and that it run on Windows. ...

Any way to get a Cached UIImage from my 'Documents' directory?

I know that the -imageNamed: method returns a Cached UIImage, but the problem is that my image file is stored in 'Documents', and the -imageNamed: method seems to only search the Bundle... I am currently (reluctantly) using -imageWithContentsOfFile: to get my image from 'Documents' but it is not the same...Scaling up/down a UIImageView c...

Expiring a Rails Page cache automatically after a certain amount of time

I am generating a big sitemap for a site and using page caching on it, so that a sitemap.xml is generated in my public folder. Is there a way to have this page expire after say 3.days? I've looked but couldn't find anything that could do that. ...

Using <meta> tags to turn off caching in all browsers?

I read that when you don't have access to the web server's headers you can turn off the cache using: <meta http-equiv="Cache-Control" content="no-store" /> But I also read that this doesn't work in some versions of IE. Are there any set of <meta> tags that will turn off cache in all browsers? ...

(Rails, Flash) Why would my updated Flash chart not be refreshing in Internet Explorer?

Hi All, I've got a bit of an odd issue here. Basically it only occurs in IE. Safari, Firefox, and Opera work just fine. FYI, I am using XMLCharts (http://www.maani.us/xml%5Fcharts/) to display chart data. Basically I have a library that generates up-to-the-minute data on the fly based on selected date ranges. Well, for whatever rea...

Deleting IE8 cache programmatically doesn't seem to work

i want to delete the cache in ie8 with the following code $this->cache= Cache::instance(); $this->cache->delete('tuinArray'); $this->cache->delete('intBreedte'); $this->cache->delete('intLengte'); i use the kohana framework it works fine in chrome and firefox, but i just seems that ie8 keeps the cache stored, could anyone tell ...

Data Caching Stores In ASP.NET MVC

Greetings fellow earthlings. I'm researching methods of caching data retrieved from various database tables using ASP.NET MVC. We have a huge amount of data which is only updated once a day and from then on is static. This can vary but generally it's things like a list of users (employees), to departments, offices, locations we're in ...

Caching Data Access Layer Results

Hi guys I want to do some caching at the data access layer to help boost performance. I have decided that I will use the HTTPContext cache, with an abstraction layer on top so i can switch in and out other caching strategies later on if needed. Basically the cache should be variant, meaning that for each individual method it will cac...

How do I force the browser to get an updated PDF file generated from an SSRS report?

I have a web page that downloads a pdf version of an ssrs report through a link. However when I make changes to the data, the browser pulls up the same pdf file as before without the updated information (the pdf file stored in the temp folder). If I then go to another browser and download the PDF I get the new version, but the other brow...

Cache Dependancy Off causing exception..

Im getting an exception in my data tier when I try to disable cache dependancy in SQL server.. System.Exception: TblSettings::Insert::Error occured. ---> System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.AspNet_SqlCacheUpdateChangeIdStoredProcedure'. The statement has been terminated. Enabling cache dependan...

What is the best way to store downloaded files?

Sorry for the bad title. I'm saving web pages. I currently use 1 XML file as an index. One element contains file created date (UTC), full URL (w. query string and what not). And the headers in a separate file with similar name but appended special extension. However, going at 40k (incl. header) files, the XML is now 3.5 MB. Recently I ...

Microsoft Velocity - best way to share cached data on single server

Hi there, I have several WCF services and ASP.NET application both accessing data via shared service layer. Inside this layer I'm performing all required data access and caching. Now I need to share cached object between WCF ans ASP.NET. What's the best way to configure Velocity to work on a SINGLE server. Also how can I disable object ...

HTTP: What are the best headers for rarely changed images

I have many many small images that are displayed on a user's profile and the loading of this page is horrible. The best solution is to sprite them all, but sadly I have too many images for that and only a few hundred are used per profile. So, I'm trying to get the second best solution. What headers should I send? ETag? Expires? Cache-Co...

Django: When saving, how can you check if a field has changed?

In my model I have : class Alias(MyBaseModel): remote_image = models.URLField(max_length=500, null=True, help_text="A URL that is downloaded and cached for the image. Only used when the alias is made") image = models.ImageField(upload_to='alias', default='alias-default.png', help_text="An image representing the alias") de...

Centralizing OutputCache values in ASP.Net?

Hi, We're starting to apply output caching to many of our pages as we start load testing our app. I'm wondering if there is a way to centralize the values we are using, say in the web.config, as we have many pages on which we'll be experimenting with different values. In general, I just like the idea of being able to change the values...

Fully cached dynamic website

I would like to cache my website with memcache as much as possible. There are rare modifications (somewhat like in a forum) which I am perfectly ok with re-caching once change is made. My only concern is login information (similar to how stackoverflow has a bar on top). This is how I am doing it right now: $('div#user_bar').load('/logi...

how to cache based on many parameters

I am working on a search application that uses a form with 16 filter options that are either 1 (selected) or 0 (not selected). The result as JSON is retrieved via AJAX using a GET request. The query string then looks like this: filter_1=0&filter_2=1 ...omitted... &filter_16=1&page=20 Each searchresult has at least 2 pages which can b...

How do you set cache headers in Spring MVC?

In an annotation-based Spring MVC controller, what is the preferred way to set cache headers for a specific path? ...