caching

Asp .Net MVC Caching with Velocity

Is it possible to integrate Asp .Net MVC with some caching framework like Velocity? ...

SQL Server 2005, Caches and all that jazz

Hi all Background to question: I'm looking to implement a caching system for my website. Currently we're exploring memcache as a means of doing this. However, I am looking to see if something similar exists for SQL Server. I understand that MySQL has query cache which although is not distributed works as a sort of 'stop gap' measure. Is...

how to tell clicking "back" to load cache?

I would like for my site when someone clicks "Back" or "Forward" for the server to tell the browser to load the cache instead of reloading the entire page. I've tested some headers and done research, but I can't seem to get this to function as intended. Update: The if-modified since header is not something I'd like to do. There's got ...

How to properly invalidate an HTML5 Cache Manifest for online/offline web apps?

I'm currently using a Cache Manifest (as described here). This effectively makes the necessary resources to run the application available when the user is offline. Unfortunately, it works a little too well. After the cache manifest is loaded, Firefox 3.5+ caches all of the resources explicitly referenced in the cache manifest. Howeve...

Synchronizing filesystem and cached data on program startup

I have a program that needs to retrieve some data about a set of files (that is, a directory and all files within it and sub directories of certain types). The data is (very) expensive to calculate, so rather than traversing the filesystem and calculating it on program startup, I keep a cache of the data in a SQLite database and use a Fi...

Cached XML for PHP?

I have a custom PHP framework and am discovering the joys of storing configuration settings as human-readable, simple XML. I am very tempted to introduce XML (really simple XML, like this) <mainmenu> <button action="back" label="Back"/> <button action="new" label="New item"/> </mainmenu> in a number of places in the framework. It i...

Where can I access there ASP.NET Application Cache from Global Application_Start?

Can I access the ASP.NET Cache object from Application_Start? I was previously using it in a page render. I though it might be available as an object under the 'Server' object but no luck. ...

Forcing browsers to reload Silverlight xap after an update

I have a Silverlight control packaged up and deployed to a SharePoint web part. I'm having trouble with the browser loading new versions of the control after I push an update. I'm updating the assembly and file version of my xap project, but it doesn't seem to matter. The only way to get the browser to load the new xap is to go in and...

ASP.NET caching for web application with multiple domain names

Is it possible to have a central cache for an ASP.NET web application that is accessed using multiple domain names? The web application is using a single website and application pool, with multiple domains (host headers) pointing to it. A bit of background - the application has a lot of data that doesn't change much, and to alleviate d...

How do you test user agent/web browser caching?

When you explicitly set the cache request and response directives via setting response and request headers, is there a better way to test if they are working correctly for UAs other than manually looking in their cache? On a related note, am I right in assuming browsers get the current time for cache operations from the computer's syste...

How to store PHP sessions in APC Cache ?

Hi Storing sessions in disk very slow and painful for me. Im having very high traffic. I want to store session in Advanced PHP Cache, How can i make this ? Thanks ...

Linq Lookup dynamic list

Hi, I have a List of objects (string filename, BitmapImage image) to use as a cache of images. private static readonly List<ImageData> imageCache = new List<ImageData>(); I created a Lookup to check this cache for an image each time it is required. If the image is not in the list it is added to the list. The Looked is statically cre...

Clearing RSL in Cache

Hi, I have built a flex application which has a "main" project and it is assosciated with a few RSL's which are loaded and cached once i run my "main" application. The problem i am facing is that the newer versions of my RSL's are not being loaded as the cache holds the older version of my RSL and execxutes the same. Each time i have go...

Cache Timed Out or does not exists.

Hello Everyone, I keep recieving the following error when attempting to submit to the server: Cache timed out or does not exists. StackTrace: at Royal4.MP.MasterScheduling.ProgramScheduling.iBtnAdd_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web...

How do I save a web page, programatically?

I would like to save a web page programmatically. I don't mean merely save the HTML. I would also like automatically to store all associated files (images, CSS files, maybe embedded SWF, etc), and hopefully rewrite the links for local browsing. The intended usage is a personal bookmarks application, in which link content is cached in c...

Cache And Compare Files In C#

Ok, I'm trying to make an application for an online Radio Station. I have it set to read the song title and artist and write it to a text file on the webserver. I want to have the application store the text in a string or a cache, and then reread it every 15 seconds and if it isn't the same then update the info box. Where the text is ...

Jboss cache with Hibernate

I am very new to this caching techniques. I just managed to configure JBossCache with Hibernate on JBoss AS 4.23 GA. My question is Suppose I have two different configurations defined in the configuration file. One is optimistic-entity and second one is pessimistic-entity. I want to use optimistic-entity configuration for one set of en...

When is a cached stylesheet refreshed in Rails ?

In a Rails application, if I group several stylesheets into one using caching, will the resulting file be automatically refreshed when one of the stylesheets is updated ? stylesheet_link_tag "style1.css", "style2.css", :cache => "mystyles" And, if not, how can I expire the resulting file ? ...

PHP equivalent of ASP.NET Application/Cache objects

My Google-fu hasn't revealed what I'm looking for, so I'm putting this one out to the crowd. Coming from an ASP.NET development background, I'm used to having the Application and Cache collections available for me to stash rarely-modified but often-used resources (such as lookup rows from a database or the contents of static XML documen...

Dealing with large data sets in WCF?

We've got a smart client that talks to a SQL Server database via WCF, displaying the entities in the database, and allowing the user to edit those entities. Some of the WCF calls return a large data set. Since this data set doesn't change very often, I'm considering some sort of write-through cache on the client, and only getting the de...