caching

iPhone cellForRowAtIndexPath returns cached cell

Hi, When i add a label to a cell using: - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; [cell addSubView:someLabel]; } It adds the label to multple cells, because it adds the label to a cached cel...

Does disk caching with NSURLRequest and NSURLConnection actually work on the iPhone?

I have a UITableView whose cells contain custom ImageViews that asynchronously load the images from the internet. To load those images I use NSURLRequest and NSURLConnection which works fine. The only problem is that the images are not cached and therefore are downloaded every time they are used. I tried to set the cachePolicy of the NSU...

Selecting an appropriate cache mechanism

My setup: 4 webservers Static content server (NFS mount) 2 db servers 2 "do magic" servers An additional 8 machines designated multi-purpose. I'm writing a wrapper for three caching mechanisms so that they can be used in a somewhat normalized manner: Filesystem, Memcached and APC. I'm trying to come up with examples for use (and what...

Cache bandwidth per tick for modern CPUs

Hello What is a speed of cache accessing for modern CPUs? How many bytes can be read or written from memory every processor clock tick by Intel P4, Core2, Corei7, AMD? Please, answer with both theoretical (width of ld/sd unit with its throughput in uOPs/tick) and practical numbers (even memcpy speed tests, or STREAM benchmark), if any....

Is there a HTTP cache suited for developing against API limited web services?

At some point I'm going to want to run my application against something like the real web service. The web service has an API call limit that I could see hitting. I considered serializing out some JSON files manually, but it seems like this would basically be caching the hard way. Is there a HTTP cache I could run on my local machine ...

iPhone Safari Web Application not using cache at all?

Hi, guys, I've been developing an iphone web application for a while, and encountered a weird problem: when open the web app in safari(with safari chrome, not starting it from home screen), safari can generate proper "If-Not-Modified-Since" and "If-None-Matches", so the server simply gives 304 Not Modified to speed up the process. howe...

ASP.NET MVC OutputCache JSONP

I cache everything that is possible on an ASP.NET MVC website and it works perfect. Now I have created an API where the calls go to Controller Actions. (http://mysite.com/topics/latest.json) The API is able to return results in different formats (json, xml, rss). The data for returning is loaded in the Action: [ResponseFilter] public ...

NHibernate Caching Dilemma

My application includes a client, web tier (load balanced), application tier (load balanced), and database tier. The web tier exposes services to clients, and forwards calls onto the application tier. The application tier then executes queries against the database (using NHibernate) and returns the results. Data is mostly read, but writ...

Drupal flushing "Page requisites" cache also deletes javascript files

When I delete "Page requisites" cache, my 2 Javascript files that I use for my home page image rotator get deleted. Here is how I'm adding the javascript for those 2 files into a WYSIWYG editor with PHP code enabled: <? drupal_add_js('sites/default/files/js/jquery.jcarousellite.js'); drupal_add_js('sites/default/files/js/cycle.js'); ?> ...

Cache the DTO or cache data from the expensive resource

I have a WebService that returns a DTO. The webservice gets the data to populate the DTO from an expensive resource. In this simple example, several WebService methods may hit the same ExpensiveResourceProvider method. Where is the best place to perform caching to maximize cache hits? At the webservice or at the ExpensiveResourceProv...

jpa embedded class need cachable?

my entity class is annotated with @Cache, my primary keys are combined of few table fields, primary keys are embedded into this class as embedded class. Do I need to put @Cache for the embedded class as well? ...

page caching using php

hi. i am seeking for guidance from all of u who can tell me about page caching for a website... i am working in php so if anyone can explain me how to perform caching in php. ...

Client side caching in GWT

We have a gwt-client, which recieves quite a lot of data from our servers. Logically, i want to cache the data on the client side, sparing the server from unnecessary requests. As of today i have let it up to my models to handle the caching of data, which doesn't scale very well. It's also become a problem since different developers in ...

Expiry date as a file attribute or in a separate file for a Caching Mechanism

I'm creating a simple caching library in PHP. Currently, when I store a value I create 2 files: One that contains the value and another one to store the creation time. I want a robust solution and I'm not sure how safe it is to use the file date attributes. Do you think is safe to use the file date attribute for expiry time, instead to s...

How can I cache a function in asp.net

Hi, I have a function which calculates distance from database records. This function is called at least twice in one asp.net page request. In this time period the result does not change. So what to do to cache result, I need performance in my app. For example: public static int GetKilometers(int VehicleID) { /*some db query and calcula...

How to cache SQLAlchemy results?

Suppose I have a mapped class Article and I have a mapped class Author. Article.author is a relation on Author that returns the author of the Article. How do I make Article.author to cache the value in memcached? The problem is that referring to Article.author does an SQL query each time it is called, but there is really no need to quer...

Is it OK to reconfigure a Beaker cache after import time?

The Beaker cache documentation seems to assume a configured cache at import time for use as a decorator. I would like to defer configuration of the cache until later so its parameters can be loaded from a configuration file. How do I reconfigure the Beaker cache? ...

Which second level cache to select for nHibernate?

I have a Data Service created using WCF that internally uses nHibernate. This WCF Data Service is used by Asp.Net application from Web Server. To improve the performance of the nHibernate Data service I want to implement nHibernate second leve cache. Which second level cache provider will be good in this scenerio? As the SysCache uses As...

Why Ajax request, using the GET method, cannot be cached in Opera?

Please look at this small test: http://www.karapuz.by/media/js/ajax-GET-caching-test.html It seems that Opera (mine is 10.10), in contrast to IE, FF, GC, and Safari, is not caching the ajax response, even if it is explicitly told to do that. Any ideas? ...

Jinja2 in Google App Engine

Hello, I have started using Jinja2 as my templating engine on Google App Engine (in Python). My question is this: Will bytecode caching work in production? It is working very well on the development server, but I read somewhere that bytecode caching depends on the marshal module, which is not supported in App Engine. This answer to a d...