caching

How do I choose what and when to cache data with ob_start rather than query the database?

I have a home page that has several independent dynamic parts. The parts consist of a list of recent news from the company, a site statistics panel, and the online status of certain employees. The recent news changes monthly, site statistics change daily, and online statuses change on a per minute bases. I would like to cache these panel...

Application Cache on iPad works on localhost doesn't work on production server

Problem: On localhost the applicationCache is working in both the iPad simulator and regular safari all the time. On production server I'm getting status = 0 (uncached) on iPad simulator and the actual device but on safari it actually loads the cache correctly the first time but hangs in status = 2 (checking) for subsequent refreshes. ...

Are scripts hosted at Google cached accross multiple sites?

If I visit 1 website www.abc.com that has a reference to say jQuery hosted at Google Code, and then I visit a 2nd website www.xyz.com that has the same reference - will the file be cached across both websites? i.e. will it re-download it on the 2nd website, or just use it from cache? ...

Top caching libraries for .NET

What caching libraries would you consider to be the most important or useful for .NET? I'm asking because I need to contact them to see they plan on supporting .NET 4.0's caching framework. ...

Rails is caching when I don't want it to. Why?

Rails is caching the index method of one of my controllers. It's a very simple application and only has like 2 controllers and a handful of actions each. The weird thing is I don't have any caching in my application at all, at least not explicitly. The pages get uncached if I restart passenger. Does rails do some kind of automatic page c...

Zend Cache is not retrieving cache items after some period of time

Hi, I am using Zend Cache with page caching but it seems to miss the cache after a period of time. For a while it is OK, but I come back tomorrow and hit the page, it doesn't fetch the contents from the cache. why? $frontendOptions = array( 'content_type_memorization' => true, // This remembers the headers, needed for images 'lif...

How to write and read browser cache from Flex

Hi, I have a flex application that makes use of the autocomplete control. And I use a web service to download the data after successful login. My problem is that the data in Mb is about 4Mb and it takes quite a while to decompress in the application (after downloading it every time). Is there a way to make use of the browser cache to st...

Does Google appengine cache external requests?

I have a very simple application running on appengine that requests a web page every five minutes and parses for a specific piece of data. Everything works fine except that the response I get back from the external request (using urllib2) doesn't reflect the latest changes to the page. Sometimes it takes a few minutes to get the latest,...

jqgrid not updating data on reload

I have a jqgrid with data loading from an xml stream (handled by django 1.1.1): jQuery(document).ready(function(){ jQuery("#list").jqGrid({ url:'/downtime/list_xml/', datatype: 'xml', mtype: 'GET', postData:{site:1,date_start:document.getElementById('datepicker_start').value,date_end:document.getElementById('datepicker...

How to force HttpWebRequest to use cache in ASP.NET environment?

In my ASP.NET app I use HttpWebRequest for fetching external resources which I'd like to be cached. Consider the following code: var req = WebRequest.Create("http://google.com/"); req.CachePolicy = new HttpRequestCachePolicy(HttpRequestCacheLevel.CacheIfAvailable); var resp = req.GetResponse(); Console.WriteLine(resp.IsFromCache); var a...

Where does the Adobe AIR Browser store it's cache?

When you create a AIR app with an embedded web browser, where does it store it's cache? How can I clear this cache? ...

Caching in Ruby Gem, possibly not using Rails

I am rewriting an existing Ruby Gem to include caching. This is for a gem that is relatively commonly used, and accesses a large amount of static data on a web service. Currently, I have a small number of gem users doing a large number of accesses to the service that under normal conditions would be swamping / downing the service, and ...

With cacheduration set, is it possible to have the function still trigger

If I have my cacheduration set to some value for my Web Service, is it possible to force the function to trigger? Thanks. ...

Query Cache Issues - releasing cache locks?

I have enabled query caching to use the NHibernate.Caches.Prevalence.PrevalenceCacheProvider provider. This is running on IIS 7, WCF service. I have limited rights to what I can do, but I'm getting an exception about releasing cache locks. I've created the following 2 directories in the system32/inetsrv directory and given full contro...

ASP.NET cached aspx page & IIS logs

Hi guys, Is there any way to find out if ASP.Net runtime has served a cached copy of ASPX page or actually went through the page life cycle? Here is my problem: I'm seeing many entries in my IIS log files that were served successfully (200 OK). I've a corresponding logging code (Log4Net API) in the Session_Start and Application_BeginR...

REST application, Transactions, Cache drop

Hi, I am building REST API in php with memcache layer on top for caching all resources. After some reading/experience it turns out it's best when documents are as simple as posible...mainly due to dropping cache sequences. So if there is 'building','room' entities for the 'room' document I would only place the id of the 'building' and...

jsf and page fragment caching

Hi, Does jsf 2.0 + facelets supports page fragment caching, something similar to aps page framgent caching (example this tutorial http://quickstarts.asp.net/QuickStartv20/aspnet/doc/caching/fragment.aspx) Regards ...

Windows Server AppFabric Caching Session Storage

Hello! Can Windows Server AppFabric Caching share one session between 2 or more different Web Applications? How can i do this? ...

Detecting if a browser's cache is full

We've identified that full browser caches are the cause of a problem on our extranet. It only affects a small number of our users, but we'd like to alert them to the problem and give them some guidance on how to fix the problem for themselves. We'd like to use a similar system to the one which GMail uses. When it detects that your brows...

How to cache pages using background jobs ?

Definitions: resource = collection of database records, regeneration = processing these records and outputting the corresponding html Current flow: Receive client request Check for resource in cache If not in cache or cache expired, regenerate Return result The problem is that the regeneration step can tie up a single server process...