caching

C# WebBrowser control: Clearing cache without clearing cookies

I have this code that clears the cache in a C# WebBrowser control. The problem with it is that it also clears the cookies. I seem to be the only person on the entire internet that doesn't want that. I need to maintain cookies, but to throw away the cache. Of particular interest is this line: const int CACHEGROUP_SEARCH_ALL = 0x0; It ...

Advice on the most efficient way to plan-out a html/php & multi-user Ajax project.

I'm starting a experimental project and I was looking for advice to choose the best option I have. The project will be on the 100 - 1,000 user count. It collects its main data using javascript + json data from the user's flickr page and then uses that to display specific flickr photos. The variables that need to be stored include use...

which django cache backend to use?

I been using cmemcache + memcache for a while with positive results. However cmemcache lately not tagging along well and I also found that it's now recommended. I have now installed python-memcached and its working well. As I have decided to change would like to try some other cache back end any recommendation. I have also came across...

PHP content caching for javascript and css

I have a unique problem, which is proving difficult to solve using google. I am consolidating all of my javascript and css into separate php files, which use require_once() to pull the contents of the files in. The javascript file looks something like this: <?php header('Content-Type: text/javascript'); require_once('jquery.form.js'); r...

What is the fastest way(/make loading faster) to serve images and other static content on a site?

Ours is an e-commerce site with lots of images and flash(same heavy flash rendered across all pages). All the static content is stored and served up from the webserver(IHS clustered-2 nodes). We still notice that the image delivery is slow. Is this approach correct at all? What are the alternative ways of doing this, like maybe serving u...

Does anyone know of a Cache component for TIdHTTP?

I'm looking for a cache implementation for the Indy IdHTTP component that would be used for checking of a specific resource is already cached before doing the actual GET and returning the cached resource instead (if appropriate)? If the component would be a derived class from TIdHTTP and handle the cache-features automatically it would ...

Caching problem.

I have a web page with a set of images and java script files. I want to cache all the images+java script other than a single image which is the logo. Is this possible ? and how would I do it ? I am using IIS server. ...

What system to use for a key-value cache on a single server

I'm implementing a PHP script which will need some caching capabilities. I'm trying to determine which caching strategy to use for user data assuming that the script is running on a single server. I'm probably looking at about 50k different keys. The data for each key is not very big - in most cases less than 5kb. I have implemented a ...

NHibernate L2 Cache - fluent nHibernate configuration

I've managed to configure the L2 cache for Get\Load in FHN, but it's not working for queries configured using the ICriteria interface - it doesn't cache the results from these queries. Does anyone know why? The configurations are as follows: ICriteria: return unitOfWork .CurrentSession .CreateCriteria(typeof(Country)...

Caching account information

I currently using my own membership implementation on a ASP.MVC project. I've got an Account and an Account can have more than 1 memberships. I am not sure what is the best approach to follow with Account information being cached. I am currently loading the account information for almost each request from the User property of the contr...

How can I change the link format in will_paginate for page_cache in Ruby on Rails?

I want to use page_cache with will_paginate. There are good information on this page below. http://railsenvy.com/2007/2/28/rails-caching-tutorial#pagination http://railslab.newrelic.com/2009/02/05/episode-5-advanced-page-caching I wrote routes.rb looks like: map.connect '/products/page/:page', :controller => 'products', :action => 'i...

HTML5 manifest cache problems

I'm trying to cache (for offline use) some parts of my webbapplication but whenever I cache css files or js files they turn up empty when loaded from the cache (checked both in Safari and Firefox) What can cause this problem? I have made sure that the manifest file is working properly and I have tried both with relative paths and absolu...

nHibernate strategies in a web farm

Our current project at work is a new MVC web site that will use a WCF service primarily to access a 3rd party billing system via a web service as well as a small SQL database for user personalization. The WCF service uses nHibernate for the SQL database. We'd like to implement some sort of web farm for load balancing as well as failove...

.NET SettingsProvider/ApplicationSettingsBase caching

I'm looking at some code that uses the .NET System.Configuration.SettingsProvider and ApplicationSettingsBase to handle configuration. We have a class that derives from SettingsProvider that uses a database as the data store, and then we have other settings classes that inherit from ApplicationSettingsBase, and have the [SettingsProvide...

Preventing browser caching on web application upgrades

Hi. I have a quite troublesome issue which I didn't find a good solution for yet. I allow caching of all my application static files (JS, CSS and images) by browser for performance. Problem is, when I'm doing upgrades, the users still use the old version from their cache, which often breaks the application, and requires clearing the c...

Cache Regions in Velocity/AppFabric using WCF

I have a service based architecture where a web farm full of asp clients hit application server farm of WCF services. Obviously all the database access is done by the WCF services. Now I would like to cache my frequently used database retrieved objects using Velocity at the service tier level. I am considering to make each physical appli...

Force cache flush in browser

I just made quite a large update on a website that uses asp.net. In the new update I have changed a lot of the code so that I use jquery instead together with asp.net web service. Many of my users have problems with that the new update doesn't work until they flush all cache in their browser. As it's a lot of work to tell everybody to fl...

caching Type.GetXYZ

In a specific piece of code i cal Type.GetFields() many times. One call can call it 5 times or more. Also a piece of code could iterate thousands of times. ATM i dont need to optimize but i am asking so if i need to i know how. How could i cache this? I am hoping i can do something like obj.GetType().Tag["myCacheId"] and pull out cached...

How to handle caching of GWT theme CSS files

I've got an app written with Struts/Tiles/JSP that I'm adding a GWT app to. The non-GWT portion of my app handles css caching by actually writing out the css file with a version number taken from my svn repository attached, like this "styles.css?svnbuild=12345". That way I can tell the browser to cache those css files forever and when ...

ASP.Net Caching

How can we do Database driven caching in ASP.Net. ...