caching

ASP.NET object caching - how much is too much?

Hey guys, My first time really getting into caching with .NET so wanted to run a couple of scenarios by you. Question 1: Many expensive objects I've got some small objects (simple int/string properties) which are pretty expensive to instantiate. These are user statistic objects which each user may have 1 - 10 of. Is it good or bad p...

Is it possible to make caches_action work for a rails controller method accessed via HTTP POST?

I have a controller action which could benefit from caching. However, when I turn on action caching via the usual: caches_action :myaction, :expires_in=>15.minutes ...caching doesn't get invoked. It looks like this is because the action is invoked using an HTTP POST. For similar actions invoked using HTTP GET, caching works fine. I...

Is it possible to declaratively configure the spring.net cache rather using attributes

Is it possible to declaratively configure the spring.net cache rather using attributes? I dont want to add the attribute such as : [CacheResult("AspNetCache", "'Airport.Id=' + #id", TimeToLive = "0:1:0")] I'd rather do this in configuration files ...

Cache systems - Hypertable vs Memcached

I'm pretty sure this is not Serverfault material, so bear with me. Wanting to implement a cache system for our application, we've started integrating with Memcached. Recently I started hearing of Hypertable, and saw some great benchmarks done with that.. However, I couldn't find good comparison between the two. Just to get things stra...

PHP IP to network translation

Hi, How could I get a /22 network address from an IP address? Like: /24 of 193.95.221.54 is 193.95.221.0 /16 of 193.95.221.54 is 193.95.0.0 /8 of 193.95.221.54 is 193.0.0.0 /22 of 193.95.221.54 is 193.95.X.0 I'd like to cache GeoIP data for 1024 IP addresses with a single cache entry to conserve cache space and number of lookups (Ge...

How to get caches_action to set expires headers when there is a hit in memcached?

I have an action which I cache using caches_action :my_action, :expires_in=>1.hours and also set the expires headers in the action itself using def my_action ... expires_in 1.hours send_data(...,:disposition => 'inline',:type => 'image/png',:filename => params[:title]+".png") end However, when I look at the cache control r...

CSS reload on IE7

It looks like IE7 doesn't reload the latest version of my stylesheet each time I upload a new version on the server. This is annoying as I am debugging my .css file to make it work on IE... Tried to empty the browser cache but still not working. Thanks for your help. ...

Implement object-caching in classic ASP memory-leaking

I have tried to implement different caching-implementations in a classic ASP site in order to offload the database during heavy traffic. My approach was this: Create a global HashTable object in global.asa where I later on store jscript-objects within <object id="SIZE_LIST" progid="System.Collections.HashTable" runat="Server" scope="A...

How not cache an ASP.NET user control?

Hi, I'm using OutputCache in my page that has a user control, but I don't want to cache this specific user control because it's related to a user login (if I access the page, I see the page as if I were authenticated with another user). How can I do that? ...

IE caching problem

I have a popup that uploads some files on submit, and after successful upload the jsp outputs a script block that contains window.close() I am having a problem where IE seems to cache the popup html on close, and when the user clicks a link to upload more files, the cached version opens first, and closes the window! how can i prevent t...

Application behavior with Internet Explorer 7 settings

I created a very simple ASP.NET application with one ASP.NET textbox control, ASP.NET button control and a ASP.NET gridview control. When my client loads the application for the very first time, they enter in some text and press enter. The application does not load the results and clears the text box control. When they close their b...

Content is cached

Hello, I am making a portal page for a project, and a div contained is refreshed every 1000 seconds. The problem I am having though, is that the content that is being pulled in is always cached, so refreshing has no effect, the user has to do a hard refresh. This only occurs in Internet Explorer Here's the javascript code I used to re...

Best way to cache pages in a database?

I’m working a project involving datamining from various sites, a good analogy is gathering statistical data on eBay auctions. However as well as storing the key data, I really need to ensure access to the original page, and on some sites the original pages may not be permanent – like if eBay removed an auction’s page after completion. I’...

IIS 6 caches static image

Even if the image is changed, overwritten, modified, IIS still serves the cached copy. I am trying to upload an image from a webcam taken every 15 seconds. The image makes it onto the server but when I refresh the browser with the image FROM the server it does not refresh. IIS caches the file apparently for more than 2 minutes. I want t...

Need to save block of data in ASP.NET between page refreshes in web farm without using inprpc or state server

I have an asp.net application running in a server farm. So In-proc sessions are out. There's no state server. There's a sql server database (can't be used for state server). There's no forcing same web server serving capabilities so no guarantee which web server will serve next page. I need to save a block of data (big object state) be...

Persisting sensitve data in asp.net, odd implementation

For reasons not in scope of this question I have implemented a .net project in an iframe which runs from a classic asp page. The classic asp site persisted a few sensitive values by hitting the db on each page. I have passed there variables as xml to the aspx page, now I need to make these values available on any page of this .net si...

How can I load values from memory without polluting the cache?

Hello, I want to read a memory location without polluting the cache. I am working on X86 Linux machine. I tried using MOVNTDQA assembler instruction: asm("movntdqa %[source], %[dest] \n\t" : [dest] "=x" (my_var) : [source] "m" (my_mem[0]) : "memory"); my_mem is an int* allocated with new, my_var is an int. I have two problem...

Displaying results of a MySQL temp table using PHP - caching ?

Hello, I am currently having an issue where MySQL is only displaying 1 of my 3 rows in a dynamic Temporary Table ive created in a PHP page. I can confirm how many rows the TmpTable has via: $numrows = mysqli_num_rows($doResults); // returns 3 But when I do my while($rows=mysqli_fetch_array($doResults)){ } Only 1 of the 3 rows are re...

How do I filter FindFirstUrlCacheEntry()?

I have studied the documentation on MSDN, but it doesn't work for me, I am wondering what I'm doing wrong? My code is as follows, I am trying to filter my IE cache, for example, to get only the cookies: #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <wininet.h> int main(void) { DWORD dwEntrySize; DWORD dw...

Does DBIx::Class have transparent caching?

In the C#/.Net world, there are ORMs such as NHibernate or ActiveRecord that includes transparent caching: database updates are transparently replicated to the cache, objects are retrieved directly from the cache when available, etc (often with memcached). It doesn't look like transparent caching is available in Perl with DBIx::Class. D...