caching

How do you share Java Caching System (JCS) resource across multiple EJB

I am using JCS to store the ldap search results which should be shared by multiple EJB. I have created a singleton class to initialize JCS only once but due to EJB's classloader, it's been initialized multiple times with its own copy. so search resources are not shared. How are you guys resolving issue where you need to share the cache ...

Disable WSDL Cache in ASP.NET

I am using SoapExtensionReflector to modify the WSDL sent to the client due to a complex proxy setup. This modification is based on a query string variable: whatever.com/Service.asmx?WSDL&customaddress=proxy.whatever.com This works well, and the modification is successful. However, the WSDL is cached by ASP.NET the first time, so a s...

The R in CRUD - where's the line between feature and disclosure vulnerability?

We all know how hip it is to make our Ajax calls using address routing and HTTP-Get with parameters in the URL because the client side can cache those calls and thus server load is reduced, but where do you guys think the line is between "a neat way to address resources" and "disclosure vulnerability"? I'll give some examples- Let's say...

How would I perhaps reduce the processor footprint of a php script?

I'm attempting to make a php script that can load the current weather forecast and it uses a bit of XML pre-processing to digest the input, however it is accessed quite often and reloaded. The problem begins with my current host, which yes I do understand why, limits the amount of processing power a script takes up. Currently takes an e...

Storing A Generic List in Application State

Hi, I am using C# and ASP.NET 3.5. I stored a generic list in HttpContext.Current.Application so that all the pages of a website can have access to it. When I assign its value to a local variable on a local page for some local use, any change I make to the local variable gets reflected back in the original list in the Application State...

C# issue with mutiple users trying to access cached object

I'm having to store a Data set in cache for X min and when it expires i have it so that the next request will check if the cache exist and then goes and fetches updated data and set the Cache. The issue is that another user will come-in at this time and try to access the object and causing an exception to be thrown. How do i prevent this...

HTML jquery response is cached on IE

Well I have a very rough version of gomoku working now. I'm using Jquery, Php and mysql database. When a user clicks on a board square a piece is placed. An ajax refresh determines if turn count has been incremented and updates the board's html if necessary. The problem is that Internet Explore (6,8,&probably 7) caches the page on the...

C# ASP.NET - Cache List of Objects that needs to be Searched/Sorted?

Hello, I have a list of Order objects. These objects are shared across multiple users of my application, and change very infrequently while accessed often which makes them ideal candidates for caching. The problem I'm facing is that I have LINQ queries against my MSSQL db which do sorting and searching - but how do I do this if I keep ...

How do you work with data caching in you .net web application?

I'm currently looking how to work with caching on my web application I'm buildning. I have an ormapper (nhibernate, not using second level cache), and I have built a cache frame, built on System.Web cache, that I pass in the objects. My question is. Are there open source cache frameworks someone can recomend? Is their anything to gain ...

Set up caching on entities and relationships in Fluent Nhibernate?

Do anyone have have an example how to set up and what entities to cache in fluent nhibernate. Both using fluent mapping and auto mapping? And the same for entity relationships, both one to many and many to many? ...

Virtual Path Provider disable caching?

I have a virtual path provider. Problem is its caching my files. Whenever I manually edit one of the aspx files it references the VPP doesn't pull in the new file, it continues to reuse the old file until I restart the site. I've even over-rode the GetCacheDependency() in my VirtualPathProvider class: public override CacheDependenc...

how to use asp.net cache on windows azure with multiple instances

hey guys if i have an azure web app running under multiple instances how do i use asp.net cache. has the azure team written any cache providers for azure? i read somewhere they are going to support velocity in future but if i have to go live with some app in next couple of months what is the best way i can cache my data (i dont want to ...

cached php webpage content

hi there i have a webpage with a PHP switch on which I choose what page to display. A lot of the content is static and i wish to know how can i cache webpage for anonymous users. can you help me with some ideas, links? many thanks ...

Full view caching for dynamic routes in cakephp

I am having some issues with full view caching in cakephp. The url that I would like to cache is /posts/badge/23/size:180x150 I have been able to cache the view successfully by adding $cacheAction = "1 hour"; to the controller. Since I do not want to cache all methods in the controller (just specific methods) I tried to use the array s...

Caching and accessing configuration data in ASP.NET MVC app.

I'm about to take a look at how to implement internationalisation for an ASP.NET MVC project. I'm looking at how to allow the user to change languages. My initial though is a dropdownlist containing each of the supported langauages. Whoever a few questions have come to mind: How to store the list of supported languages? (e.g. just "...

Entity Framework caching under ASP.Net

I was trying to find out which Entity Framework objects, if any, remain live after the end of an HTTP request that is being handled by ASP .Net? i.e. Does an ASP .Net application benefit from any of the Entity Framework caching mechanisms across different requests? This article describes the operations that are occurring under the hood...

Set maximum life of entity in Enterprise library's cache block?

In my application I want to add some items to my cache, but these items should be at most one day old. Is there an OOTB way to set the maximum life for certain objects? ...

Avoiding multiple repopulations of the same cache region (due to concurrency)

Hello I have a high traffic website and I use hibernate. I also use ehcache to cache some entities and queries which are required to generate the pages. The problem is "parallel cache misses" and the long explanation is that when the application boots and the cache regions are cold each cache region is being populated many times (inste...

Php simple caching technique for small-mid size websites

Hi, I was looking for HTML/Text content caching for small-mid size site using php. I'll mostly save the dynamic navigation-menu for site, generated HTML report from DB etc. Primarily I am looking for session based caching (is it a bad idea?). It can also be file based. Any existing solution is much appreciated. For example Zend Framewo...

How to make browser don't revalidate cache

How can I tell browser that use the cache and do not revalidate (HTTP Status 304) within the expire time or close the browser ? (just an opposite the must-revalidate ^^") ASP.NET ...