I have a .net web page which displays a list of objects. I also have a WCF service which allows clients to submit new objects. This is all glued together via SQL Server.
My question is: I would like to have the page update asynchronously when a new object is inserted via the service. Can you suggest a best practice for doing this? I wou...
Hello everyone,
I had a question related to whether or not (and how) I should store images loaded from the web. Let's say I am calling a web service from my Android app. In this web service I get a URL for an image on the web. I download and show this image on the left side of a list item in a ListView. My question is, what method s...
I have an application that uses ehcache for cache (but I think this problem is framework-agnostic), with a method interceptor so basically if I mark my method for caching something like this happnes:
public Object invoke(MethodInvocation mi) throws Throwable {
Object result = cache.get(key);
//key comes from MethodInvoc...
I'm currently developing an Android application that fetches images using http requests. It would be quite swell if I could cache those images in order to improve to performance and bandwidth use.
I came across the CacheManager class in the Android reference, but I don't really know how to use it, or what it really does.
I already scop...
I'm looking for information on things like ehcache and other alternatives to memcached for a project that will likely involve 3-4 webservers and something like 2-10 million distributed objects that need to be available to all servers.
Specifically, I'm trying to understand how other systems distribute data, whether or not memcached is u...
I have an app that will need to cache some images.
I have read some documentation about caching, and the logical thing to do is to cache my images within the Library/Caches directory within my app's sandbox.
I understand that the reason for storing caches images here are:
Library/Caches isn't backed up by iTunes
Library/Caches is cle...
Hey
I'm developping an app that download the content of a web page on the iPhone then store it so the user would be able to access it offline.
I'm using NSURLConnection to download the page, as is the doc. But it downloads only the HTML code without extra content like images.
Even if images are not in a NSData structure, I would like ...
I am developing a website in ASP.NET and I am using various javascript frameworks/libraries. The different files belonging to these frameworks/libraries rarely changes thus there is no reason to refresh those files once they have been sent to the client browser (atleast not everytime a page is served).
I see that the HttpContext object ...
Im building a image gallery which reads file from disk, create thumbnails on the fly and present them to the user. This works good, except the processing takes a bit time.
I then decided to cache the processed images using the ASP .NET Application Cache. When a image is processed I add the byte[] stream to the cache. As far as I know th...
Hi,
Just updated my site to newer, much more standards compliant design. My previous design was so rubbish that I had to use the IE=EmulateIE tag to force IE7 emulation.
Unfortunately, I believe that browsers may be caching this setting from previous visits, causing my new site (which looks great without the button pressed) to look ru...
Hi,
I have a website that offers a service to subscribed members. It has been reported to me that one of the pages that has a form used to submit data to a mysql database has not been displaying saved changes.
The form should display back data that has been stored in the database. (After the page has been submitted)
I thought this was...
I need to implement cache for SQL queries.
Say we have "SELECT id,aa,bb FROM table1 WHERE aa>1 and bb=12;" -- we want it to be cached.
Also, it may be "SELECT id,aa,bb FROM table1 WHERE aa>25 and bb=11;"
And can be "SELECT id,aa,bb FROM table2;" of course.
Not a big deal -- what really is a question is how to expire cache values better...
I'm using session_cache_limiter() and session_cache_expire() at the top of my PHP 5.1.0 script, just before my session_start().
From PHP help:
[...] you need to call
session_cache_limiter() for every
request (and before session_start() is
called).
But what if I don't call session_start()? Will session_cache_limiter() and ses...
Any time I make a change to a type converter or editor, I have to close down my visual basic 2008 express ide and restart it.
If i don't restart, the following problems occur:
(1) The designer shows what appear to be random errors. I solve this by running the app, so not a real problem there.
(2) Serialization of design time propertie...
And if so is there an example in vb .net? I want to add a linq result to the cache and then allow a mvc post to search the cache for better performance...every way I implement it I receive an object not referenced error...
I'm confused, maybe I shouldn't be doing it this way but the mvc post will be checking up to 2000 records and it wo...
Details:
I am using visual studio 2005 on windows xp sp3. The website is stored on file system. I used subversion to checkout the code from the server.
Here is the issue:
When I run the application for the first time everything is fine. But when I makes changes in the application then I should just be able to see those changes by reload...
I want my PHP pages to be cached. To allow cache I use:
session_cache_limiter('private');
session_cache_expire(180);
session_start();
Since I'm only using sessions for these cache headers, should I just drop these 3 line and replace them with (I'm never using $_SESSION):
header('Expires: <some GMT date>');
header('Cache-Control: priv...
I have an enterprise system that is used by a handful of WinForms clients and a public-facing ASP.NET site. A backend WCF service provides several services to be consumed by each of these clients. The services require message credentials, which in the case of a WinForms app is supplied by the user when the program first starts.
I cach...
Hello
I am downloading and storing files locally in the app storage domain. For some reason one of the files gets locked by air. I found this by looking at process explorer.
If I clear the browser cache the file never gets locked, only if it attempts to download the file but it exists in browser cache does air lock the damn file.
Plea...
How does apache handle caching of certain files, and is it possible to explicitly say that certain files should be aggressively cached more than others, through the standard config files for a given host or virtualhost?
To put it in context, I keep a lot of site content in various XML files, and I'd like to be able to say that this fil...