caching

Building asynchronous cache pattern with JSP

I have a JSP that will take some 8 minutes to render. The code logic itself can not be made more efficient (it will update often and be updated by basically a pointy haired boss). I tried wrapping it with a caching layer like <%@ taglib uri="/WEB-INF/classes/oscache.tld" prefix="oscache" %> <oscache:cache time="60"> <div class="pageco...

Storing mvc2 entity model in cache

I getting data from a webservice. (one-time timelimited password used for login) Data only needs to be read, no updates. I'm still looking for the best framework to put this in without making the small-medium site too heavy. If I only gets my data from the webservice once, puts this in several objects.. Would it make sense to store thi...

Working with the IE cache

I'm writing a program in C# using the WPF framework. I need to display images, and I'd like to cache them to avoid downloading them constantly. I can code my own cache, however, IE already has a caching system. I can find code to read entries out of the IE cache, however I've found nothing dealing with the issue of adding items to the c...

Donut Caching ASP.NET MVC2

Is there a possibility to do Donut Caching with MVC2? Even with a lot of research I was not able to find a working solution. ...

Cache for large read only database recommendation

I am building site on with Spring, Hibernate and Mysql. The mysql database contains information on coordinates and locations etc, it is never updated only queried. The database contains 15000 rows of coordinates and 48000 rows of coordinate connections. Every time a request is processed, the application needs to read all these coordinate...

PHP not obeying my defined ETags

What I'm doing I'm pulling an image from the database and sending it to the browser with all the proper headers - the image displays fine. I also send an ETag header, using the SHA1 of the image's content as the tag. The images are getting called semi regularly, so caching is a bit of an issue (won't kill the site, but nice to have). ...

How to efficiently serve massive sitemaps in django

I have a site with about 150K pages in its sitemap. I'm using the sitemap index generator to make the sitemaps, but really, I need a way of caching it, because building the 150 sitemaps of 1,000 links each is brutal on my server.[1] I COULD cache each of these sitemap pages with memcached, which is what I'm using elsewhere on the site.....

Selecting multiple cached elements

In jQuery you can select two elements by id like: $('#elem, #elem2'); BUT What if you have cached the elem and elem2, and what to apply the same method/function to them both? i.e. $elem = $('#elem'); $elem2 = $('#elem2'); This obviously wont work: $($elem, $elem2) Thanks! ...

RDMS with memcached or NOSQL database like MongoDB/CouchDB?

Data in question would be mainly text with a one to many relationship (for example HTML pages) . I know that one can do "cache for x number of days" in memcached however how easy would that be to implement in NO SQL ? Thank you again and I apologize in advance if I am not making sense ...

Memory mapped files causes low physical memory

I have a 2GB RAM and running a memory intensive application and going to low available physical memory state and system is not responding to user actions, like opening any application or menu invocation etc. How do I trigger or tell the system to swap the memory to pagefile and free physical memory? I'm using Windows XP. If I run the s...

Section or group name 'cachingConfiguration' is already defined - but where?

On Windows XP I am working on a .NET 3.5 web app that's a combination of WebForms and MVC2 (The WebForms parts are legacy, and being migrated to MVC). When I run this from VS2008 using the ASP.NET web server everything works as expected. However, when I host the app in IIS and try to use it, I see the following error Section or group n...

Can we view objects in the JVM memory?

Hey, At work we found that on some instances (particulary the slow ones) we have a different behaviour, acquired at the reboot. We guess a cache is not initialized correctly, or maybe a concurrency problem... Anyway it's not reproductible in any other env than production. We actually don't have loggers to activate... it's an old compo...

Do you guys know of any good File based caching for PHP?

The data to be cached is going to be HTML files and are to be retained anywhere from 3 days to a week. My understanding is that memcached would not be a good solution here since if the server goes down, we lose everything. Thank You ...

Memcachedb Versus MongoDB Versus CouchDB in terms of file based caching solution?

We need a caching solution that essentially caches data (text files) anywhere from 3 days up to a week based on user preferences and criteria. In this case memory based caching does not make sense to us. We were referred to MemcacheDB however I also thought of some NO SQL solutions. Our current application uses RDMS (MYSQL) and I guess...

Java DAO caching

I'm developing a medium Java app, and i'm facing a small problem due to my lack of experience. I've a custom DAO, which gets "Article" objects from the Database. I've the Article class, and the DAO has a method called getArticle(int id), this method returns an Article. The Article has a Category object, and I'm using lazy loading. So, ...

data caching in mysql

can we cache queries in mysql with php. or please suggest me some ways to do so. ...

How can we cache running webservice through c# in webfarm scenario?

I want to cache running web services in webfarm scenario. ...

Hibernate database integrity with multiple java applications

We have 2 java web apps both are read/write and 3 standalone java read/write applications (one loads questions via email, one processes an xml feed, one sends email to subscribers) all use hibernate and share a common code base. The problem we have recently come across is that questions loaded via email sometimes overwrite questions cre...

Android 2.1 View's getDrawingCache() method always returns null

Hello, I'm working with Android 2.1 and have the following problem: Using the method View.getDrawingCache() always returns null. getDrawingCache() should return a Bitmap, which is the presentation of View's content. Example code: public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setConten...

config sqlcachedependency

i know SqlCacheDependency could push the modified data from db to the Cache, i want to know if the I could config the sqlcachedependency not push the modified data immediately, but push every 1 minute. ...