caching

ASP.Net increase MaxProcesses (web garden) using state server and caching

I have an ASP.Net website on IIS7 and I am planing to increase the MaxProcesses to match the number of cores on the server (4 cores, 64bit Windows Server 2008). From what I read, if I increase the MaxProcesses to create a web garden I have to set an out-of-process state server, so I am planing to use the ASPState service to share sessio...

how the opcode cache actually works?

hi.. im doing my final project and its about optimizing web performance (focus on caching). i plan to use eaccelearator as a tool in my final project. i need to know the background process of it, the flow diagram about how it works and how an opcode cache can boost performance of websites. it can be eaccelerator, or anykind of opcode cac...

How to force JBoss 4.2.3 to clear hibernate's session cache for every request?

Hi! It seems to me that JBoss reuses entity managers and the underlying hibernate sessions for multiple requests. I have run a test which proves that in some cases the state of an entity may be out-dated even if it is just fetched using em.find(). How can I disable this behaviour and force to clear or throw away used sessions to ensur...

Memory managment when drawing to a view on the iPhone

Hey guys, I have a UIImage that I'm instantiating using imageWithData: (the data is loaded from the bundle using [NSData dataWithContentsOfFile:]). I'm then drawing the image like so: NSData *imageData = [NSData dataWithContentsOfFile:fileLocation]; UIImage *myImage = [UIImage imageWithData:imageData]; //These lines are superfluous ...

How does JavaFX cache http downloads?

Does a JavaFX applet use the browser's cache or any cache when downloading files over http://? I know it will cache the .jar files that define the application. I want to write an audio player that caches the media it downloads. ...

adding context.Response.Headers.Add("Cache-Control", "no-cache"); says IIS integrated pipeline required?

Not sure if this makes sense, but why did adding the code on my http handler (responds to a ajax request returning a json result): adding context.Response.Headers.Add("Cache-Control", "no-cache"); cause an error and say integrated pipeline mode has to be set? ...

Invalidating cached content, If-Modified Headers?

I'm having a peculiar problem: PHP SCRIPT: // checks If-Modified-Since header (if nothing has changed) // Sends HTTP/1.0 304 Not Modified // Sends Cache-control: public, must-revalidate // exits // if NO If-Modified-Since or something has changed // builds content // Sends Last-Modified: [DATE TIME] // Sends Cache-control: public, mus...

REST and URI Caching

As I understand it, using a hypertext-driven RESTful Web service, a client is not supposed to know anything about server URI layout except for a couple of well-known entry points. This is supposed to enable the server to control its own URI space and reduce coupling with the client. When a client for the service sends a successful reque...

Render a ASP.NET control in the master page code-behind

I'm using a Substitution control in my master page, and I want to render a user control content (related to the login area of my website) in the Substitution . Seems like I must have a reference for the requested page so that it could render the control. But I need to render the control in the master page itself, as it's shared across mu...

How can I invalidate a page in the browser cache from the client side?

I need the client (using javascript) to invalidate a page it has and essentially fetch a new version? I thought I could do it all with headers: http://stackoverflow.com/questions/1295397/invalidating-cached-content-if-modified-headers If there NO way to have the browser refresh its current cached version, with out making a new request ...

Microsoft Enterprise Library Caching Application Block not thread safe?!

Good aftenoon, I created a super simple console app to test out the Enterprise Library Caching Application Block, and the behavior is blaffling. I'm hoping I screwed something that's easy to fix in the setup. Have each item expire after 5 seconds for testing purposes. Basic setup -- "every second pick a number between 0 and 2. if th...

Is it possible to retain a variable in memory (RAM) in PHP?

Hello guys, I'm studying high-performance coding for websites in PHP, and this idea popped into my mind: We know that accessing a database uses a significant amount of CPU usage, so we cache such data, saving it to the HDD. But I was wondering, can't it rest in the RAM of the server, so I can access it even more faster? ...

In Smarty-PHP can I cache a registration/sign-up web form ?

I'm using a Smarty template for my web application Registration / Sign-up form. The form is slow to load, can I cache the registration form in order to speed up the loading of the page? On the form page, I use SESSION and do lots of PHP error checking to ensure that the form fields are completely & correctly inputted. If not, I redis...

How to only cache a portion of a page using Smarty Template (PHP) ?

How do I cache everything on a Smarty template page except for a small portion of the content (which is truly dynamic)? ...

Cache strategies using IQueryables

I have been pondering for a while how to best cache IQueryables. I am using a repository pattern to fetch data into a class such as this one: public class Item { public int Id { get; set; } public string Name { get; set; } public IQueryable<Category> { get; set; } // For simplicity. It is actually a LazyList<Category> contai...

Asp.net - Caching vs Static Variable for storing a Dictionary

I am building a web-store with many departments and categories. They are stored in our database and accessed often. We are using URL rewriting so almost every request within the store generates a lookup. We also need to iterate over the data frequently to generate menus for the main store and the department pages. This information wil...

how to change Java cache folder automatically for WebStart programs

We have a java application deployed in a local LAN, which is cached in JRE cache folder. By default this cache space can be up to 1GB in size and in most cases here all computers have used that space in total. This will not be an issue if there is no need for doing daily backups of all user's home folders in LAN (and there are more tha...

ASP.NET User Control Partial Caching by variable values

How is it possible to create various cached versions of a user control based on a field within the control. So for example I have a user control that has the following declaration: int someInt = 0; Let's say this variable could be set to any value between 1 and 10. If I want a separate cached user control for each value of the variabl...

Can you solve my odd Sharepoint CSS cache / customising problem?

I have a weird situation with my sharepoint css. It is deployed as part of a .wsp solution and up until now everything has been fine. The farm it deploys too has a couple of webfront ends and a single apps server and SQL box. The symptom is that if I deploy the solution, then use a webbrowser to view the page it has no styles, and if ...

Where is the best place to put cache-evicting logic in an AppEngine application?

I've written an application for Google AppEngine, and I'd like to make use of the memcache API to cut down on per-request CPU time. I've profiled the application and found that a large chunk of the CPU time is in template rendering and API calls to the datastore, and after chatting with a co-worker I jumped (perhaps a bit early?) to the ...