The company I work for has proxies/WAN accelerators between our international sites to cache Intranet web content. I have a Silverlight application being hosted on a server at one location, but being accessed by clients in another location. When the users access the web page hosting the Silverlight app, they get the stale xap file bein...
I need to cache objects in Java using a proportion of whatever RAM is available. I'm aware that others have asked this question, but none of the responses meet my requirements.
My requirements are:
Simple and lightweight
Not dramatically slower than a plain HashMap
Use LRU, or some deletion policy that approximates LRU
I tried Link...
HI All,
In our project we are using a File System to store the static content that is the xmls, xslts, images, gifs etc. and we are following a three tier architecture. The database layer will only contain the metadata while the file system is separate. So, my questions are as follow:
1) Where should we keep the File System Access logi...
I have a router running Linux that acts as the central gateway to the Internet for a network of embedded devices that use IPv6 to communicate. I would like to intercept, inspect, and rewrite every packet that goes in and out from the Internet to this subnetwork. The reason I need to do this is that I want to create a transparent (to both...
Hi,
I'm developing a site in PHP which has some complex SQL queries and I would like to implement a caching feature to reduce the load on the database.
I'm just wondering would it be better to write and read HTML directly to a file or perhaps create something like a YAML file with a delimiter to separate records then wrap it in HTML w...
I'm am currently developing an ASP.NET intranet application. One of the features of this application allows users to search for items in order to manage them (edit, delete etc).
Currently I am not using any kind of caching (since the search results change so frequently); however, when the user's search results in around 4 thousand item...
Just wondering if anyone knows definitively what the default serialization used by the ASP.net HttpRuntime.Cache is? Is it Binary, XML, something else?
I ask because I have a situation where I am populating a generic List with multiple objects of the same custom type. The custom type is a POCO, there is nothing special about it. All of ...
Background
I am working on a web application built on Django. I use the auth context_processor, which causes a Vary: Cookie header on each response (See http://code.djangoproject.com/ticket/6552)
I return images through a Django view to check user permissions, etc. These images should be cached on the browser for an hour. The images...
We having been using multiple webservers for our cakephp application,
now the problem is there are two cache directories , server 2 is clearing his cache before doing any insertion in his database. BUT server 1 doesn't know the about the database has been changed , so server 1 cached is not cleared
When new web request comes to serv...
We are writing a portal and like every portal we store html data in Db fro Modules.
So I thought that I can cache each module in files. I use OnLoad event to check if there is a cache file for this Module, use that and else create cache file:
if (!IsPostBack)
{
string Path = AppDomain.CurrentDomain.BaseDirectory + "\\Cache\\Module...
I'm trying to figure out a way to cache the next and previous images in my gallery script ... I'm wondering if this is a good way to do it. Also, is there any way to manually specify the cache time for the downloaded image?
...
C# Win Forms Application, requires caching of function's return values, that should be based on the parameters so if function's parameters changes while calling the function it must call again, but for same parameters it should return the value directly from cache, is there any existing C# facility available or any rapid easy technique o...
Using asp.net in visual studios and IIS7 when i get a host.
I have a folder full of icons that will rarely change and is used on every page. Is there a way i can set a certain directory to expire something like once every 2 or so hours so i can decrease the amount of incoming request to the server?
...
I'm doing a project in Django and using djangos-css (http://github.com/dziegler/django-css) and Sass (http://sass-lang.com/). The Sass files are served in development using django-css. I want to write a JavaScript routine that will every one second retrieve the CSS assets. The purpose of this is so that the designer can edit the Sass ...
I'm having a lot of elements which are generated and referenced (mouseover, clicks, position changes) a lot of times.
I have the ID's of those elements at hand. Is it wise to store the document.getElementById(ID) calls in a variable, or is it faster/just as fast/slower to call document.getElementById() everytime?
var app = [];
var app....
UPDATE: Interestingly, after almost 15min, I seem to have AUTOMATICALLY restored about 500MB. Hows this happening?
I'm on Mac OSX 10.5.6(Leopard). I wrote a python script for a Project-Euler problem. My script had a loop which iterated for an enormous count like 600851475143.
Used Vi and Python on Mac's Terminal.
I didn't get the resu...
I have a list of objects in an asp.net page. Each object represents a product of a shop, consisting of the name of the product, product id, price, available quantity etc. A customer can select a product from a drop down list, and the corresponding fields, such as price, quantity etc are automatically filled with the appropriate values. F...
Could anyone explain how to make sure that if I update my webapp, the user gets the latest version of files?
Should I add a dynamic string ?version=random at the end of script and css files and change it as I roll out updates? Or what is a general strategy here?
Thank you, Boda Cydo.
...
I need to create a menu item, which changes its title and link if a user has a certain condition, or not.
Drupal caches all the menues, so i can't really think of a way to do that.
For example, user has a node attached to his profile, menu item is "Create blabla" (link node/add/blabla)
User doesn't have the node, menu item is "Create no...
I'm implementing object caching in a PHP application using APC.
The issue is, that sometimes I will select something from the database based on different criteria. For instance, when a user logs into the web site, all I have is his username and password, so I'm going to select from the database based on the username.
In other situatio...