caching

Zend Cache not working using Action Helper

Hi, I'm trying to implement full page static caching in my Zend Framework application. Using the Static backend coupled with the Capture frontend, whole pages can be cached, and served by a .htaccess redirect in the future, until the cache is deleted/regenerated. For reference, I've been using the section on Zend_Cache_Backend_Static in...

HTML5 Cache manifest file itself is not cached, and called at each resource load

We have a web app that runs on the iPhone.The manifest file is ok, and the resources(html, css, js) are cached correctly.The page sits in the home screen. The trouble is, when the page loads a resource from the cache, there is as well a GET call to the server to read the Cache Manifest file.The server is configured to send the correct h...

Problem With HTML5 Application Cache Whitelist - Won't Ignore Items

I'm trying to use HTML5 Application Cache to speed some things up on an iPhone webapp. It works great for storing images, css and JS, but the problem is that it also tries to store the HTML. I haven't been able to get it to ignore the html and stop storing it in the cache. From what I've read, I have to "whitelist" the files and direc...

Automatically clearing the Java Web Start Cache

I have a Java Web Start application. I specify the resource (jars, images, etc) version and change every time there is a new version. Unfortunately sometimes the resources are not always updated when there is a new version. Is there any automated (possibly include in the application) way of clearing the web start cache? ...

How to cache objects store them for multiple requests?

I am using Ruby on Rails and I need to store a search result set obtained by connecting to another server. The problem is I don't want to store the result set in the session and I want something where I can store the result set object over multiple requests. The querying takes time so I don't want to repeat it. Is there a way I could s...

Custom collection using cache class

Hello, I am trying to improve performance by limiting my objects in memory by using a cache. This creates problem with my ObservableCollection. Well, i think the code speaks for itself. I have "transformed" my ObservableCollection-derivative to this: public class TrackCollection : INotifyPropertyChanged, IEnumerable { private read...

Drupal: Getting user name on user account page without breaking performance

I have multiple blocks shown on the user profile page, user/uid On each of them, I need to print the user name. I've been doing a $user = user_load(arg(1)); print $user->name; on each block. Since there is no caching, as you can image the performance is HORRIBLE. Is there either a way to get the user name more efficiently or to cache ...

How do you paginate results from a dynamic search in Django?

I'm currently building a simple search method for some designs. The query searches both the name of the author and the text of the design. The problem: what happens when the database has 300,000 designs and I want to paginate the results? If I pass a page variable, then each time a user switches to a different page, the query is executed...

How to keep client side cache in sync ?

I have a SQL server and couple Windows clients and cache of some tables as objects on clients. I currently have a pull mechanism where every one minute or so clients query one row in DB to understand if cache is still good if changed they sync everything, but I want to change this mechanism to push based. I mean I want server to “ping” ...

Chrome cache won't update in my site

Chrome cache doesn't seem to update while accessing my website. Only when people clear it or press ctrl+F5 they can see the new content. I'm running it on a Wordpress CMS. Does anyone have any idea why is this happening? ...

Jsp page getting called from cache rather than getting loaded from server

I am calling a jsp based on 2 parameters which is passed from jsp 1 in this way.Below i pass 2 parameters into 2.jsp and based on these 2 parameters data is displayed in 2.jsp.I have a loop in which i have a number of hrefs like the one i have described below.Each of these href passes a different set of value to 2.jsp. out.println("<a h...

How to Cache Ienumerable var

I have the following code : XDocument xResponse = XDocument.Parse(strXMLResponse); var vMyData = from xmyInfo in xResponse.Descendants("Result").Elements("item") select new myProporties { strmyInfo1 = ((string)xmyInfo .Element("el1")).Trim(), strmyInfo2 = ((string)xmyInfo .Element("el2")).Trim(), strmyInfo3 = (strin...

cache in asp.net (output)?

hi, in my application i trying to implement the cache (ouput) but it is not working fine, that is it is every time getting from cache only this is my code. <%@ OutputCache VaryByParam ="none" Location="Client" Duration="10" %>. Code: protected void btn_Click(object sender, EventArgs e) { DataView dtv; dt...

How to cache result of Html.RenderPartialView

Hi all, I'm on project using asp.net mvc2. In master page I have some lines of code line this <% Html.RenderPartialView("Header", Model.HeaderData) %> ... <% Html.RenderPartialView("LeftMenu", Model.MenuData) %> ... <% Html.RenderPartialView("Footer") %> How could I apply caching to RenderPartialView Thanks ...

Is asp.net caching my sql results?

I have the following method in an App_Code/Globals.cs file: public static XmlDataSource getXmlSourceFromOrgid(int orgid) { XmlDataSource xds = new XmlDataSource(); var ctx = new SensusDataContext(); SqlConnection c = new SqlConnection(ctx.Connection.ConnectionString); c.Open(); SqlCommand cmd = new SqlCommand(String....

Is there anyway to force WebClient to not return cached data?

I'm retreiving images from a web server directory like this: WebClient webClientImgDownloader = new WebClient(); webClientImgDownloader.OpenReadCompleted += new OpenReadCompletedEventHandler(webClientImgDownloader_OpenReadCompleted); if(uriIndex < uris.Count()) webClientImgDownloader.OpenReadAsync(new...

Change cachable content

How can I change cachable content so that the user will immediately get the refreshed version? I'll give an example: I have a .css file that is cachable for 2 weeks, so even if I change it, users will still get the old version, unless the press F5. There are a few solutions, that I know of, but none are perfect: Changing the filena...

Asking browsers to cache as aggressively as possible

This is about a web app that serves images. Since the same request will always return the same image, I want the accessing browsers to cache the images as aggressively as possible. I pretty much want to tell the browser Here's your image. Go ahead and keep it; it's really not going to change for the next couple of days. No need to co...

PHP: Cache RSS data to avoid requesting it everytime the page loads.

I'm parsing data from this RSS feed: http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&amp;locCode=SAM|AR|AR005|MONTE%20MAIZ, The data there updates once every hour. To parse it, I load the RSS at the initialization of my class and convert it into an usable object. The problem with this is that every time the page loads, the ...

Correct way to enable autocomplete in SharePoint (Asp.Net) forms?

There is a problem in SharePoint (both WSS3 and WSS2) that item registration and edit forms do not have the "autocomplete" feature in Internet Explorer. That is, if you need the same value in some text field frequently, you have to type it manually. Internet Explorer does not provide you with drop-down list of values you have previously ...