caching

ASP.NET Session/Cache + multi-core processor server

Hello, I have a multi-core server hosting my asp.net solution. In the past with dual-core, etc. you had to modify your app to NOT use in-proc session state, etc. Is this still the case if its a dual core? Also, does server cache play a part in this? I have had no issues with session, but when i try to clear the cache from code, it do...

how to clear or replace a cached image

I know there are many ways to prevent image caching (such as via META tags), as well as a few nice tricks to ensure that the current version of an image is shown with every page load (such as image.jpg?x=timestamp), but is there any way to actually clear or replace an image in the browsers cache so that neither of the methods above are n...

Force re-cache of WSDL in php.

I know how to disable WSDL-cache in PHP, but what about force a re-caching of the WSDL? This is what i tried: I run my code with caching set to disabled, and the new methods showed up as espected. Then I activated caching, but of some reason my old non-working wsdl showed up again. So: how can I force my new WSDL to overwrite my old ca...

Check for new version everytime I visit a web page - caching

I work at a college that uses an intranet based student management solution not developed by us. Recently changes were made that caused us to have to set internet explorer to check for a new version of a web page each time it visits. Otherwise certain pages would fail to run correctly we would get old content which would then cause tra...

Alternatives to MySQL

I would like to store data persistently for my application, but I don't really need a full blown relational database. I really could get by with a basic "cache"-like persistent storage where the structure is just a (key, value) pair. In lieu of a database what are my best, scalable options? ...

Custom caching in ASP.NET

I want to cache custom data in an ASP.NET application. I am putting lots of data into it, such as List<objects>, and other objects. Is there a best practice for this? Since if I use a static data, if the w3p.exe dies or gets recycled, the cache will need to be filled again. The database is also getting updated by other applications, so...

Do I have to call dispose after each use though datatable is stored in cache?

Simple case: i put a DataTable in Cache DataTable table = SomeClass.GetTable(); Cache["test"] = table; then in later calls i use DataTable table = (DataTable)Cache["test"]; now the question is: should i call table.dispose() on each call, though its stored in the Cache? Means the object is always the same? Or will Cache create a copy...

HTTP Caching, Browsers weirdeness and everything else!

Yesterday I've tried to get serious about rightly caching some PHP generated pages (think "Articles with comments"). Big fail. Long story short: I set the ETag header, set the Last-Modified one and check server side every Article browser request with them to see if I can send back a 304. The problem is simple: the browser (tried with F...

How can I get the size of an object in the HttpRuntime.Cache?

I am currently storing many different types of objects in the ASP.NET HttpRuntime.Cache and I was wondering if there is a way to figure out how big each object is? ...

HttpRuntime.Cache[] vs Application[]

I know that most people recommend using HttpRuntime.Cache because it has more flexibility... etc. But what if you want the object to persist in the cache for the life of the application? Is there any big downside to using the Application[] object to cache things? ...

How to implement background/asynchronous write-behind caching in PHP?

I have a particular PHP page that, for various reasons, needs to save ~200 fields to a database. These are 200 separate insert and/or update statements. Now the obvious thing to do is reduce this number but, like I said, for reasons I won't bother going into I can't do this. I wasn't expecting this problem. Selects seem reasonably pe...

Post processing of reverse proxied HTTP requests? (like Akamai's ESI)

We run a relatively high volume content site. Like most content sites, the majority of each page is relatively static. The articles rarely change, making them good candidates for some form of static/edge caching. There are two big problems, though. Secondary page elements (nav, recent content lists, etc) change pretty frequently, qui...

ASP.NET Refresh the page after uploading image

Hi all, I have an ASPX page where I am uploading an image to server for on a serverside button click event. In my page, it will show the available image if it exists. When I upload an image, it will replace the old one with the new one. Now after uploading also the same image is getting displayed. How can tackle this? I used window.loc...

How do you disable caching on Modal dialogs in IE?

We have implemented a popup window as a modal dialog using the IE method: window.ShowModelDialog(...aspx) The target of the popup window is itself an ASP.Net web page. Assume for the following steps that the popup has never been launched: Launch popup. Page_Load event handler executes on server side. Close popup. Immediately launch...

Which events do/do not fire when a page is returned from the asp.net cache?

I have an App which users have to log into. Once logged in, they may perform a search against our database. Their Identity can affect the search results. I wish to use Cache pages of the results. VaryByParam sounds good for this. However I do not understand the events that do or do not fire when a cached version of a page is returned...

Can a silverlight client access a local sql compact database that is stored in isolated storage.

Does the silverlight clr support access to a sql compact database placed in the silverlight application's isolated storage? If so, any pointers to code samples. I would like to cache information retrieved from the server in previous sessions. ...

What's the reason for my ASP.NET Cache never expiring, despite having a sliding expiration time set?

Hi all, So, I've cached a value using the ASP.NET Cache object, with the following code: Cache.Insert("TEST_VALUE", 150, null, Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds(120)); As I understand it, this should mean that if nothing accesses that object for 120 seconds, it will expire and return null. However, if after 10 minutes...

Will ASP.Net remove individual tables from a cached dataset to free up memory?

I have a strange, sporadic issue. I have stored procedure that returns back 5 small tables (e.g. IDs and Text Descriptions for Status drop down lists and such). The code calls this and places the returning dataset into ASP.Net cache. Separate methods are called to retrieve individual tables from the dataset to databind to controls t...

Caching in Code Igniter

I have read the documentation for the CI Caching but still don't understand much about it. What exactly does it do, and what is the use of caching a dynamic website? ...

What are some possible reasons for objects stored in the ASP.NET Cache never expiring, despite having a sliding expiration time set?

Hi all, sorry for the duplication, I'm really stuck on this. I posted this before and someone did try to help, but I wasn't signed in at the time and I can't seem to find it now... I've cached a value using the ASP.NET Cache, with the following code: Cache.Insert("TEST_VALUE", 150, null, Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds...