caching

SWF file not loaded from cache when accessed from different pages in the website?

I have a flash gallery that uses a dynamic swf file to load data from xml and load images. This same swf files is used over several times for different clients in the portfolio section. But now it apears that the swf is loaded everytime a different client is clicked even though they all access the same swf file, any ideas? ...

Does JBoss cache class files?

I'm wrestling with a strange problem: When I make a change to a POJO or Seam Component in my localhost JBoss instance, restart it, and load the page, the change is visible. However, on our server, running the same version of JBoss, when I stop the instance, delete the WAR file, upload the latest version, and restart JBoss, it won't show ...

Computer file caching issue with asp.net website.

This may be some "best practices" thing I've overlooked or don't know about, so go easy on me please. I have an asp.net website that populates a gridview with columns from my database table. One of those columns gets processed into a link to a word document on another server. The issue is that if a user clicks on the word document to vi...

How do I cache subdomain-specific views in Rails?

Our Rails app has some views that get heavy traffic but don't change too often (weekly at the most). I want to cache these views but we use subdomains to specify user accounts. I've seen a few different blog posts on how to cache views based on subdomains. Just wondering what the preferred method is. Also, one of the pages we need to ...

Asp.net Mvc OutputCache attribute and sliding expiration

Calling http://foo/home/cachetest for [UrlRoute(Path = "home/cachetest")] [OutputCache(Duration = 10, VaryByParam = "none")] public ActionResult CacheTest() { return Content(DateTime.Now.ToString()); } will show the same content for every 10 seconds no matter how often i refresh page. Is it possible to easily add sliding exp...

Linq to SQL Cache Dependency

Hi, I'd love to hear people's views on the pros and cons of mixing SQL Cache Dependency with Linq to SQL, as described in this article: http://code.msdn.microsoft.com/linqtosqlcache This works for me, but I'm interested to know if anyone has any alternatives? Cheers, Tim ...

Extract from Cache.db files on Mac OS X Leopard

I am a Windows user, and I delete temp internet files from IE by URL visited (because the Java app has an embedded web browser tied to a web server). I read from another post that the Cache.db file stores responses from webservers when it is an app bundle (/users/username/library/caches/myappbundle/cache.db). Is it possible to extract ...

Firefox cache path construction Mac OS X

I know the path for Firefox's cache is as follows on Mac OS X Leopard: ~/Library/Caches/Firefox/Profiles/COMPUTER_CODE.default/Cache How is the variable "COMPUTER_CODE" above created? I assume it is different from computer to computer. I want to be able to programmatically delete this cache if it exists. ...

How to force a browser to show the latest changes to a CSS file?.

I made some changes on a CSS file on a PHP site. The changes do not show up in any browser I test it on until I hold down the CTRL key and click the browser's REFRESH button. This means that most users are not going to seem the changes I made. How can I force browsers to show the changes to CSS files immediately (without renaming the ...

Page level caching in MOSS

I am hosting traditional asp.net pages within a moss site, using the same masterpage as the rest of the site collection. Will moss page caching settings apply to all the asp.net controls/content inside the masterpage or just moss related controls? ...

Asset URLs without cache timestamps in Rails

I'm using a transparent PNG with the Google IE fix library. This fix only works on images urls that end in "-trans.png". Rails' timestamp-based caching is causing problems with this. When I use image_path() to generate the URL for the image, it appends the file's last-modified timestamp to the image's query string. Since the URL no long...

304: Not modified and front end caching

I am using a PHP script to serve files. I would like to be able to send back a 304 not modified header in my http response if the file has not changed since the client last downloaded it. This seems to be a feature in Apache (and most other web servers), but I have no clue how this can be implemented through PHP. I have heard of using ...

What algorithms do DNS servers use for faster lookups?

DNS servers have to be fast in order to avoid latency. What algorithms do DNS Servers use to reduce latency? Are they any caching mechanisms that could be effectively used to improve speed? ...

asp.net shall i cache a 5 kb file?

im using a handler to serve user avatars. if there is no avatar set its reading noavatar.jpg from file system and binarywrite to the client. is it good idea to cache this 5kb noavatar.jpg to memory and serve from there? I am concerned because avatar handler gets quite alot of requests. ...

Do atomic operations become slower as more CPUs are added?

x86 and other architectures provide special atomic instructions (lock, cmpxchg, etc.) that allow you to write 'lock free' data structures. But as more and more cores are added, it seems as though the work these instructions will actually have to do behind the scenes will grow (at least to maintain cache coherency?). If an atomic add take...

Using synchronization in Data Access Layer

Suppose we are developing class which implements simple CRUD operations for working with DB. This class also maintain cache for increasing performance. public class FooTableGateway { Map<Integer, Foo> id2foo = new HashMap<Integer, Foo> (); public void getFoo (int id) { if (id2foo.containsKey (id) { return id2foo.g...

Race-condition creating folder in Python

I have a urllib2 caching module, which sporadically crashes because of the following code: if not os.path.exists(self.cache_location): os.mkdir(self.cache_location) The problem is, by the time the second line is being executed, the folder may exist, and will error: File ".../cache.py", line 103, in __init__ os.mkdir(self.ca...

"Pre-warming" the cache with a full, computationally complex page from my Rails app

Hey Everyone, Our initial page load is a beast in our Rails app. The great thing about it is the lack of page refreshes needed. The whole thing is very Ajax-y (and our designers made it look great!) There is only one problem: Initial page load is a monster. I have tweaked and prodded and have eeked out incredible speed improvements b...

caching spring/hibernate webapp

I have a website that allows searches for lists of content in various ways, for instance "show stuff created by user 523 ordered by date" or "show a list of the most recent 10 posts." I use Hibernate for my ORM, and Hibernate provides a cache for objects. For lists of objects, though, like the front page list of most recent content, I'...

How to cancel edit/disable cached input (of type text) value?

I have an input of type text, from which I have already entered value 1234 it has been saved in cache as shown below. The problem here is that, it is extremely frustrating to select the textbox in the next row. Is there a way to not to display that 12334 (highlighted in the screenshot) from ever being displayed through HTML markup o...