In Rails, can I check in a view whether the action is to be cached?
Hi, I am using caches_page in controllers, like so: caches_page :index Is there a way I can check in the view files whether the action is to be cached or not? Thanks ...
Hi, I am using caches_page in controllers, like so: caches_page :index Is there a way I can check in the view files whether the action is to be cached or not? Thanks ...
I am running Magento 1.3.2.4 (MySQL 5.1.5 and PHP 5.2.4) and am finding that products do not show up in categories until the page is refreshed. This means that when you access a category page for the first time, it is empty, then when you refresh the page, the products appear. The URL of the site follows. If you navigate to any subcateg...
Hi there You know I have the way to Cache the data I've got from the SQL Server over data caching. In addition I can output cache web user controls. Whats about a web user control contains data from a SQL database? Does it make sense to cache the data and also cache the control? What is the best solution for the combination of these t...
I'm using Windows Media Services 2008 and Windows Media Services 9 and I'm trying to configure two servers. Server #2 must be the source server where the video files are hosted. In order to save some bandwidth, a certain number of other server (proxies) will be deployed on the network. Desired scenario : -all videos are hosted on ser...
We have some code that occasionally flushed out certain keys in the ASP.NET cache in order to make sure that we are getting up to date data from our Dynamics CRM system. It seems to work fine most of the time, however we are getting intermittent exceptions on page reloads that I suspect is related to this forced cache flushing. Here is ...
I'm playing around with a simple web app locally, and can't quite figure out why it is not caching correctly on the iPhone. I am serving a .manifest file with the correct MIME-type, and the site works perfectly fine with my local server turned on or off on desktop Safari, Chrome and Firefox. It is only mobile Safari that is failing to ...
Background: I've been using LABjs to load JS files asynchronously and in parallel, and I want to build something that takes it a step further. Part of this will involve detecting when a JS file is loaded in cache or not. So my question is: How can I determine whether a JS file is in cache or not and in addition do so in a way that would...
Hi, I was curious as to how is cache performance measured. Can you do it programmatically or do you need specialized tools for this purpose? Does the programming language being used matter? Thanks, Abhinav. ...
We enabled static resource caching in our ASP.NET application like this: <system.webServer> <staticContent> <clientCache cacheControlMode="UseExpires" httpExpires="Thu, 29 Oct 2020 00:00:00 GMT" /> </staticContent> </system.webServer> Using a sniffer, we can confirm that the Expires tag is actually being placed on the ...
Hi, Currently I am using fragment caching with an object key. And I expire the cache using Touch with updates the updated_at column and then the current cache become obsolete. And a new cache is generated the next time. <% cache do product %> The cache key for an object looks like this table_name/ID-updated_at Now I want to cache m...
How can I test that resource (file based cache for caching output of a webapp in Perl) behaves sanely under concurrent access to said shared resource? I wrote a simple file-based cache, written in Perl, which uses locking to serialize write access, i.e. to have only one process that (re)generates cache entry. This cache is to be used...
I've got an app that implements a command object pattern to get data from a server. Now I'd like to implement a client side cache and I need some pointers on how to deal with cache eviction invalidating. The problem To get an object I pass the GetObject(id) command and receieve a GetObjectResponse with the results for that id. I've go...
I'm working on a pretty large data migration project which involves moving data between servers and different active record schemas. The whole migration literally takes days. How can I implement a caching solution where my Ruby migration code when it calls the Active Record save method writes to a cache (which then updates the MySQL da...
on each controller call i have a code that gets some user properties from a webservice. I want to cache these for each user so i only hit the webservice once. what is the best way to cache code in a controller method so it will allow me to avoid hitting the database on every URL request but also not cache one users info when another us...
CPU cache always interrupts what we test a performance of some codes. gettime(); func1(); gettime(); gettime(); func2(); gettime(); // func2 is faster because of the cache.(or page faults of func1()) // But we often misunderstand. When you measure your code performance, how do you remove the cache's influence. I'm finding some funct...
I have a cms in which I can change positions of objects. After each position change ajax call updates the whole list of objects. But unfortunately some data is stored in cache and no changes are visible. Is there a way to force clearing cache with javascript/request/other ? I've tried 'cache: false' in $.ajax but it's not working. Here'...
Is IO more efficient, due to the linux disk buffer cache, when storing frequently accessed python objects as separate cPickle files instead of storing all objects in one large shelf? Does the disk buffer cache operate differently in these two scenarios with respect to efficiency? There may be thousands of large files (generally around...
Is there a way to prevent a specific file from being opcode cached with APC? The use case is as follows: An application that sits on the cloud, which dynamically resizes itself (spinning up and down servers as required). The config.php script must know of the new IPs as they become available or unavailable. Since these changes happen f...