caching

ASP.NET MVC 2 controller not cached

Hi All, I have amaster page that calls render action: <% Html.RenderAction("CategoryList", "Category", new { selectedCategoryId = Model.selectedCategoryId }); %> and the action looks like: [ChildActionOnly] [OutputCache(Duration = 10, VaryByParam = "none")] public ActionResult CategoryList(int? selectedCategoryId) { CategoryLi...

JPA: caching queries

Hi! I'm using JPA to load and persist entities in my JEE-based web application. Hibernate is used as an implementation of JPA, but I don't use Hibernate-specific features and only work with pure JPA. Here is some DAO class, notice getOrders method: class OrderDao { EntityManager em; List getOrders(Long customerId) { Query q =...

Applet Image Cache

Hi SO. I have an applet that shows a couple of images. A lot (10-20) of these images is identical, and is fetched from the internet in a non-parallel way. Is there an imagecache that I can use? So I only fetch the same image once, or do I have to make my own? Thanks ...

Clarification on usage of "Cache-Control" header

We are trying to improve the page load time of a site. In addition to the few other optimizations, I have added a servlet filter to set "Cache-Control" headers to image files(png,gif,jpg). As expected,the image files are now getting cached at the client end and I could verify the expires time of each file by inspecting the temp folder(IE...

coldfusion 8 cache cleaning

Hello everyone, what is the cleanest way to clear cache on ColdFusion 8 server do i don't have problems with old Stubs when i create web service client? ty very much for your response ...

What algorithim is .NET using to calculate cache expiration time

I'm running this code which appends a timestamp to a file everytime the cache expires, but the timestamps don't seem to match up with the absolute expiration tht i've applied public void ProcessRequest(HttpContext context) { System.IO.File.AppendAllText("c:/test.txt", "new"); context.Cache.Add("test", DateTime.Now.ToString(), n...

Is it possible to have all of a controller's actions go into the action cache without specifying each action to caches_action?

I've got a controller for semi-static pages (the only content that changes is a login/logout link and the presence/absence of a link to the user's home), and I'd like to put the static content into the action cache for every action. Is there a way to specify to cache all of the pages, without having to manually add each page? I.e., i...

How can I stop action_cache from unescaping my ampersands?

I'm generating html and js to send to my page via AJAX. That part works great - everything renders fine, and my ampersands are escaped. When I user action_cache, the data in the cache file has un-escaped ampersands in the textual portions of my html (links remain escaped). So, it breaks when it tries to update the page. Why does the c...

Zend error: The apc extension must be loaded for using this backend

Hi I am getting the above error setting up my Zend application on a public hosted server. I have another application on the same sever which works ok so I assume APC is obviously loaded. How can I diagnose this? Thanks ...

iPhone storage in tmp directory

Hi everybody, I have a question from this stackoverflow question about iPhone storage. Like I already tried to answer, we can cache data in tmp directory. But a comment says that the data can be deleted when OS whimp. I don't understand exactly the problem that the comment says. I want to ask if the process of OS deleting tmp director...

nginx passenger expires max cached pages

I have posted another question similar to this, which I thought I resolved. But it is coming back with another symptom. I am using REE/Passenger/Nginx and have the following in my nginx.conf location ~* ^.+.(jpg|jpeg|gif|png|css|js|swf)?([0-9]+)?$ { expires max; passenger_enabled on; } Ever since I did this, it seems ...

Django and Akamai EdgeCache

Has anyone used Akamai's EdgeCache in front of a Django-based application? Is there anything specific needed in terms of configuration/middleware on the Django side to ensure Akamai is fully utilized? ...

NSFetchedResultsController ~ cache causing issues?

Ok here goes my setup: Object Model: * Category object is at the root * Product is linked to a Category (many-to-1) * ShoppingItem is linked to a Product (many-to-1) Application setup: My application has a TabBarController at the root and a tableviewcontroller at the root of each of the tabs. The first tableviewcontroller shows ...

Disable SQL Cache temporary in Rails?

Hello, I'm currently creating a Rails app with some cronjobs etc, but I have some problems because the sql is cached by Rails. So anyone know how to disable the SQL Cache in Rails? Not globally, but for this code. Really don't want to create one method for every model, so is there anyway to just disable it temporary? Terw ...

WPF TabControl - Preventing Unload on Tab Change?

Is there a way to prevent the Tab Unload/Reload when a tab changes in a WPF tab control? Or if that is not possible, is there a recommended method for caching the tabs contents so they don't have to be regenerated with each tab change? For example, one tab's UI is completely customizable and stored in the database. When the user selects...

How do I cache a method with Ruby/Rails?

I have an expensive (time-consuming) external request to another web service I need to make, and I'd like to cache it. So I attempted to use this idiom, by putting the following in the application controller: def get_listings cache(:get_listings!) end def get_listings! return Hpricot.XML(open(xml_feed)) end When I call get_listin...

Large amounts of static data to populate a webpage - store in a database, or static?

I have a large amount (several gigabytes worth) of archival data that I want to make available to users and search engines through a web interface. Most of the data will rarely change, so I'm debating the best way to store and deliver the data. I would like to ensure that the data loads quickly and efficiently so it can easily be viewed...

Direct Mapped Cache

A direct mapped cache consists of 16 blocks. main memory contains 16K blocks of 8 bytes each. What is the main memory address format (meaning the size of each field). I know the fields are Tag|Block|Offset . I just don't know how to get the sizes of each. ...

Direct Mapped Cache

A direct mapped cache consists of 16 blocks. main memory contains 16K blocks of 8 bytes each. What is the main memory address format (meaning the size of each field). I know the fields are Tag|Block|Offset . I just don't know how to get the sizes of each. ...

Structure/Reading of IE cache index.dat

Is there any example on reading IE cache file (index.dat and friends found in Temporary Internet Files folder)? I'm fine with example in almost any (sane) programming language. ...