caching

Neither IE or Firefox respects the control values that are output

I'm writing a survey designer asp.net mvc. It has buttons to move questions up and down. The buttons post the whole form back and the affected questions are swapped on the server. When the form returns the only thing that is changed are the values for each survey question. Both firefox and IE seem to ignore this change. Nothing is...

EHCache on Coldfusion 9 - can I create multiple caches or disable it?

Hi all. We have been using EHCache with CF8 for a while now with no issues. We are now moving to CF 9 and it seems that the baked-in version of EHCache with CF 9 is actually conflicting with our EHCache setup. So is there: Any way to disable the baked-in version of EHCache? This would be a temporary solution. If we use the CF9 baked...

How should I store Dynamically Changing Data into Server Cache?

Hey all, EDIT: Purpose of this Website: Its called Utopiapimp.com. It is a third party utility for a game called utopia-game.com. The site currently has over 12k users to it an I run the site. The game is fully text based and will always remain that. Users copy and paste full pages of text from the game and paste the copied informati...

how to use control-cache headers?

I downloaded Google speed tracer for Google chrome to see how my site does performance wise and it tells me I need to enable caching for certain files like my style.css, images, etc. I've read that the below php code should tell browsers to cache html content. I wrote a quick php page with a couple of images on it and stuck the below co...

how to set httpheaders in asp.net mvc

I need to set http header for disabling ie (7-8) caching (it disturbs my ajax functionallity). I've tried inserting this code to the head of my site.master with no result - <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> How and where can I set the HTTP headers? or do you have a better solutio...

Caching and cache invalidation in user controls?

HI, In our .aspx pages we have many user controls. each user control executes a sql query. The caching mechanism to be followed is to fragment cache each user control on the page and add the query dependency to the respective queries of the user controls. How to achieve query dependency on fragment cached data for invalidation? ...

Drupal's not reading correct values from DB

Hey Everyone, Here is my current problem. I am working with the chat module and I'm building a module that notifies users via AJAX that they have been invited to a chat. The current table structure for the invites table looks like this: |-------------------------------------------------------------------------| | CCID | NID | INV...

When to address managed heap fragmentation

I was reading a blog entry by Josh Smith where he used a cache mechanism in order to "reduce managed heap fragmentation". His caching reduces the number of short-lived objects being created at the cost of slightly slower execution speed. How much of a problem is managed heap fragmentation in a managed language like C#? How can you diagn...

disable Enterprise Library Caching Application Block

We're using the Enterprise Library Caching Application Block to do caching (in memory) in our web service. Works great, no complaints. We're starting to do some load testing, and I've been asked to disable the cache so we can get some relative idea of what kind of performance gain caching gives us. I thought this would be simple - it ...

ASP:NET :Problem in DoNut Caching

I have an ASP.NET page where i am trying to do some output caching.But ran into a problem. My ASPX page has <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MYProject._Default" %> <%@ OutputCache Duration="600" VaryByParam="None" %> <%@ Register TagPrefix="MYProjectUC" TagName="PageHeader" Src="~/...

Read whole ASCII file into C++ std::string

Hello, I need to read a whole file into memory and place it in a C++ std::string. If I were to read it into a char, the answer would be very simple: std::ifstream t; int lenght; t.open("file.txt"); // open input file t.seekg(0, std::ios::end); // go to the end length = t.tellg(); // report location (this is the leng...

Approach for authentication and storing user details.

Hey folks, I am using the Zend Framework but my question is broadly about sessions / databases / auth (PHP MySQL). Currently this is my approach to authentication: 1) User signs in, the details are checked in database. - Standard stuff really. 2) If the details are correct only the user's unique ID is stored in the session and a secu...

Using SqlCacheDependency with output caching

Hi Iam adding SqlCacheDependency programmatically but Iam not able to invalidate the cache. Iam using the following Output cache directive in the .aspx page <%@ OutputCache Duration="300" VaryByParam="none" %> The code in the .aspx.cs file is: SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnStr"...

How to Cache image when src is some action which returns image?

There are lots of questions about how to force the browser to cache or not to cache any image. But, I am facing slightly different situation. In several places of my web page, I am using following code for the images. <img title="<%= Html.Encode(Model.title)%>" src="<%= Url.Action(MVC.FrontEnd.Actions.RetrieveImage(Model.SystemId))%>...

Has anyone worked on caching?

Is there anyone who can answer my questions on SqlCachedependency Cache Invalidation Query Notifications etc etc etc ...

Several Small, Specific, MySQL Query Cache Questions

I've look all over the web and in the questions asked here about MySQL caching and most of them seem very non-specific about a couple of questions that I have about performance and MySQL query caching. Specifically I want answers to these questions, assume for all questions that I have the query cache enabled and it is of type 2, or "DE...

How to specify HTTP expiration header? (ASP.NET MVC+IIS)

I am already using output caching in my ASP.NET MVC application. Page speed tells me to specify HTTP cache expiration for css and images in the response header. I know that the Response object contains some properties that control cache expiration. I know that these properties can be used to control HTTP caching for response that I am ...

Caching Authentication Data

Hi, I'm currently implementing a REST web service using CouchDB and RESTlet. The RESTlet layer is mainly for authentication and some minor filtering of the JSON data served by CouchDB: Clients <= HTTP => [ RESTlet <= HTTP => CouchDB ] I'm using CouchDB also to store user login data, because I don't want to add an additional database ...

Squid handling of concurrent cache misses

We're using a Squid cache to off-load traffic from our web servers, ie. it's setup as a reverse-proxy responding to inbound requests before they hit our web servers. When we get blitzed with concurrent requests for the same request that's not in the cache, Squid proxies all the requests through to our web ("origin") servers. For us, thi...

Lazy loading dojo modules: does dojo check its cache?

When evaluating dojo.require statements, dojo tracks which modules and resources have been required and doesn't download them many times, but takes them from cache. But what if I require a module lazily, for example, when a button is clicked, - does dojo check its cache? ...