caching

Caching in HTML5

Guys, How to enable mobile web caching in HTML5? is it possible to store dynamic data in mobile device using HTML5? What type of data's can be stored and max size? please let me know if you come across tutorial. Thanks in advance, sri ...

Hibernate 2nd Level caching doesnt seem to be working

Im currently trying to get hibernate working using the caching provider that comes with hibernate. net.sf.ehcache.hibernate.SingletonEhCacheProvider I have a default cache and a class specific cache enabled in the ecache.xml which is referenced in my hibernate.cfg.xml file. The class/mapping file specific cache is defined to handle u...

Caching of data in Mathematica

Hello, there is a very time-consuming operation which generates a dataset in my package. I would like to save this dataset and let the package rebuild it only when I manually delete the cached file. Here is my approach as part of the package: myDataset = Module[{fname, data}, fname = "cached-data.mx"; If[FileExistsQ[fname], ...

Having trouble with Spring.NET caching

I have been reading this post to help me get going on my caching and am running into a problem. When I attempt to do a call to the method below I get the following error: "Cannot initialize property or field node 'LocalTariffId' because the specified context is null." I thought the attribute syntax I am using below would use the Local...

Are files run on local machines cached?

I had a nightmare last night. I've been working on an mvc website. I'd created my master view and had ALL my styling in a seperate css file. I've created a ton of View pages as well. All of a sudden, out of nowhere, I get the blue screen of death. Checkdisk runs etc and when the OS gets back up and running my masterpage and css file are ...

PHP5.3 with FastCGI caching problem accross different requests

I have designed a stylesheet/javascript files bundler and minifier that uses a simple cache mechanism. It simply writes into a file the timestamp of each bundled files and compares those timestamps to prevent rewriting the "master file" again. That way, after an application update (here my website), where CSS or JS files were modified, a...

AppFabric Cache for large files

Hi, I'd need a solution like AppFabric to store large files (up to 500 MB) on multiple servers. I briefly explain the context: there is a central server (let's call it CS) where users upload files. These files may be consumed by devices which connect to other servers (let's call them RS1...RSn). The problem is that the bandwidth between...

nginx to cache the dynamic URL

I have a website www.somesite1.com which gets all its image content from www.somesite2.com At the moment each time an image is to be displayed we simply use an absolute URL to get it like this img src="http://www.somesite2.com/event/image.jpg" / So each time a user goes to www.somesite1.com for content www.somesite2.com gets hammered...

Which is faster/better for caching, File System or Memcached?

I don't think it's clear to me yet, is it faster to read things from a file or from memcached? Why? ...

How to make use of element versioning in an EHCache instance?

I am caching objects that are being sent to my component in an asynchronous way. In other words, the order in which these objects arrive is unpredictable. To avoid any issues, I have included a version attribute to my objects (which basically is a timestamp). The idea is that any object that arrives with a version that's older than the o...

How many DB reads can we cache in Asp.net application? is there any limit

How many DB results can we cache in Asp.net application? is there any limit e.g if we cahce DataSet with 1000 rows data and we cache it through sqlCacheDependency. ...

What are the advantages and disadvantages of using caching in an asp.net application?

What are the advantages and disadvantages of using caching in an asp.net application? ...

maven war plugin giving strange output!

hi people, I am getting some very weird behaviour from maven that I have never seen before. Basicaly I refactored some classes, like util.constants (lower c) to util.Constants (capital C), but when I run the maven build to produce a WAR from the command line (mvn clean install), it builds the war project with util.constants (lower c). U...

How to choose cache write policy on ppc

Hello ! I'm optimizing a Linux boot on PowerPC MPC83xx. I'm trying to optimize the kernel image copy, from nand to ram and trying to check or change the write policy of the cache. As a read in the reference manual, the processor uses the write-back policy by default. But I haven't found any register where to check/configure this. How ...

How to store class instance (helper class) in ASP.NET Cache?

I have a class instance which is created by using Activator.CreateInstance() method. That class instance contains helper methods which are frequently used throughout the application. In order to avoid creating the instance multiple times, I'm just thinking about implementing an appropriate caching mechanism. The following consideration ...

silverlight page caching

I'm having trouble figuring out how to cache pages already visited in my silverlight application. I have an array of URIs declared like so: let pages : UriUserControl array = [| new Module1.MyIdeas() :> UriUserControl ; new Module1.Page2() :> UriUserControl ; new Module1.Page3() :> UriUserControl ; new ...

apache status dynamic image

I have a php script which create a dynamic image with cache. I use ETAG and expire headers for all my images, for this I use a regexp like '.(jpg|gif|png)$'. With this method a user receive a "304 Not Modified" server response when the user has in cache images from my website and he refreh a page. The problem is that my dynamic image a...

How to disable Caching for certain roles in ASP.Net MVC?

I want to enable caching for all Anonymous users of my site. But for logged in users of certain roles, I want to disable caching. I am using .net4/ASP.Net MVC2. How do I achive this? ...

Magento product images messed up

I run magento and host 2 stores, for simplicity call them: Store A located at www.storea.com Store B located at www.storeb.com Currently I have a bit of an issue with my product images and with the cache. When I add a new product to display on store B (so I enter the admin backend through Store A) the image is uploaded to storea.com/med...

How can I cache a page manually in RoR?

I am trying to create a site in RoR and have enabled caching for some pages and actions. The related DB may not accessible every time and hence using the cache is very much required. Hence I cant wait for someone to actually visit the page, render it and then cache it. Instead I want whatever is cache-able to be cached manually, programa...