caching

Is MySQL caching occurring, how to fix it?

I think that MySQL or ASP.NET is caching my queries. I edited my MySQL sproc to remove some parameters but it keeps saying that those parameters are missing. How do I fix this or make it work again? Edit: I'm experiencing this problem : http://stackoverflow.com/questions/286585/mysql-caching Except that I don't have permissions to ...

Create a PHP cache system in MySQL database?

I'm creating a web service that often scrapes data from remote web pages. After scraping this data, I have a simple multidimensional array of information to use. The scraping process is fairly taxing on my server, and the page load takes a while. I was considering adding a simple cache system using a MySQL database, where I create one ro...

How do I cache look up data in Linq to Sql, and use that data in a separate DataContext?

The project I'm working on has quite a lot of "look up" data associated with it. For this reason, on the first instantiation of the class that handles this, I set static IEnumerable's with all the lookup data, thusly: private static IEnumerable<Kiosk> _kiosks; private static IEnumerable<Paper> _papers; private static IEnumerable<NewsAge...

hibernate distributed 2nd level cache options

Not really a question but I'm looking for comments/suggestions from anyone who has experiences using one or more of the following: EhCache with RMI EhCache with JGroups EhCache with Terracotta Gigaspaces Data Grid A bit of background: our applications is read only for the most part but there is some user data that is read-write and ...

How do I stop js files being cached in IE?

Hello stackers! I've created a page that uses the CKEditor javascript rich edit control. It's a pretty neat control, especially seeing as it's free, but I'm having serious issues with the way it allows you to add templates. To add a template you need to modify the templates js file in the CKEditor templates folder. The documentation ...

ASP.NET cache maximum size

Hi Guys What's the maximum size of ASP.NET cache (either deployer on a single server or out-of-process on a Web farm) you can have? If there is a limit on how big ASP.NET cache you can have, is there a workaround to increase that limit? Thanks james ...

CakePHP: views are blank b/c of wrong caching config

I experienced very strange behaviour with a CakePHP site in production. Some views did not show up, responding with an HTTP code 200 but without any payload. The browser's screen was blank gray. I tracked it down to caching. Deleting the tmp/cache folder helped the first time, but not today. So I turned of caching completly by using ...

how to clear the cached images in Android?

How to clear the cached image from memory programatically in android? i am iconic list view when i scroll its reloads the image.So its produce the OutofMemoryError. i want clear the cache while gets this exception. how to do that? any help? EDIT: i am just using this code on my program to loadimage: http://ballardhack.wordpress.com/201...

URL Encoding in JS for meaningful URLs and Rails Page Caching

Hi, I'm running a Rails Application which gets a lot of traffic at the moment so I started using Page Caching to increase the performance. So far everything works like a charm. But when I tried to also cache search results I run into a strange problem. My Approach: Use meaningful URLs for searching and pagination (/search?query=term&...

Rails Page Caching with a hits/views counter. How?

Hi, I want to use rails page caching to speed up a application which encounters heavy load. But I also need to count the hits/views on the objects presented. So I have the model "Article" with a unique hit counter method (by IP) which is called every time the user hits the show action. That doesn't work with caching, so I'm wondering ab...

Cachemanager application for ASP.NET

I'm looking for some ready-to-use cache manager application to administer cache entries. So far I found this ASPAlliance CacheManager, which is fine for smaller projects but once you have hundreds of cache entries, it become hard to manage. Some basic cache entry keys filtering would be nice to have. Thanks, Antonin ...

Best method to cache objects in PHP?

Hi, I'm currently developing a large site that handles user registrations. A social networking website for argument's sake. However, I've noticed a lag in page loads and deciphered that it is the creation of objects on pages that's slowing things down. For example, I have a Member object, that when instantiated with an ID passed as a c...

HTML5 applicationCache in local development

I'm experimenting with application cache based on this example: http://html5demos.com/html5demo.manifest This example works fine in ff, but when I create analogous site (almost identical) I get only status "UNCACHED (numeric value 0) -- The ApplicationCache object's cache host is not associated with an application cache at this time." ...

I want to cache an entire list...but it won't fit in Memcache...

Because this list is like 2MB big...and memcache max memory is only 1MB. Is there a simple key/value alternative, just like memcache, except it can do bigger size? ...

NHibernate correct way to reattach cached entity to different session

I'm using NHibernate to query a list of objects from my database. After I get the list of objects over them I iterate over the list of objects and apply a distance approximation algorithm to find the nearest object. I consider this function of getting the list of objects and apply the algorithm over them to be a heavy operation so I cach...

Access one database from multiple ORMs :: Caching issue

I know this is not a good idea and the best would be to let the applications talk Web Services. But I have a situation where the legacy application is accessing a database with an ORM and I need to access the same database from the new .net application using Fluent nHibernate. So the question is what problems this will make and how to s...

How to improve multi-threaded access to Cache (custom implementation)

I have a custom Cache implementation, which allows to cache TCacheable<TKey> descendants using LRU (Least Recently Used) cache replacement algorithm. Every time an element is accessed, it is bubbled up to the top of the LRU queue using the following synchronized function: // a single instance is created to handle all TCacheable<T> elem...

Image expire time

The google page speed tool recommends me to set 'Expires' headers for images etc. But what is the most efficient way to set an Expires header for an image? In now redirect all image requests to an imagehandler.php using htaccess: /* HTTP/1.1 404 Not Found, HTTP/1.1 400 Bad Request and content type detection stuff ... */ header( "Conte...

iPhone: cached profile images from the web - how to find out that remote image changed?

I'm loading profile pictures from Facebook, cache them on disk and load them into cells of a UITableView. Now I'm wondering, how I can find out when someone has changed his/her profile picture on Facebook that I have to load the new image from the web instead of using the one cached disk. The url of the image is always the same. Is the...

Cache of Objects or OutPut in View ? Wich is better ?

Hi everybody, I have an ecommerce working in ASP.Net MVC. i'm using Caching to improve more performace in my pages and it's working fine. I'd link to know what is more performative, for example, I can set OutPutCache in my views and and use this cache for all page OR I could get my List of Products in controller, put it on cache (lik...