I'm making a web app to manage product SKUS. One part of that is to associate SKUs with product names. On each row of a table, I list a SKU and display a <select> box with product names. The product that's currently associated with that SKU in the database is given an attribute like selected="selected". This can be changed and updated vi...
For a small intranet site, I have a dynamic (includes AJAX) page that is being cached incorrectly by Firefox. Is there a way to disable browser caching for a single page?
Here's the setup I'm using:
Apache under XAMPP, running on a Windows server
PHP
Clarification
The content that I'm primarily concerned about is page text and the ...
Imagine that your web application maintains a hit counter for one or multiple pages and that it also aggressively caches those pages for anonymous visitors. This poses the problem that at least the hitcount would be out of date for those visitors because although the hitcounter is accurately maintained on the server even for those visito...
I want to use JCS (Java Cache System) to cache ldap queries which should be shared by multiple EJB's (class loaders) to avoid the duplicate searches. I have created a singleton wrapper to create only one instance of JCS cache but due to each EJB's having their own class loader, it creates multiple instance of JCS cache so ldap search re...
I have a rails action which responds to requests in various formats including AJAX requests, for example:
def index
# do stuff
respond_to do |format|
format.html do
# index.html.erb
end
format.js do
render :update do |page|
page.replace_html 'userlist', :partial => "userlist", :obje...
I am trying to do something that appears to be simple, but I can't figure out a way around it without breaking the rate limit.
The first API call I'm making is the get a user's friend's IDs.
$friends = $to->OAuthRequest('http://twitter.com/friends/ids.json', array(), 'GET');
That returns a huge string with IDs. In my case, I'm follow...
Stack Overflowers:
I have a search function on my company's website (based on .NET 2.0) that allows you to narrow the product catalog using up to 9 different fields. Right now, after you make your selections on the frontend I am building a dynamic query and hitting the database (SQL Server) to get the resulting list of items numbers.
...
Does UIImage ever removes images from its cache? Can I keep a pointer to an image I got from imageNamed: and use it as long as I like or must I always call imageNamed:?
...
I am looking for a java distributed caching solution. We would like features likes:
Distributed
Auto-Discovery
Redundancy
Non-Centralized
We've analyzed a framework like TerraCotta which seems to be everything we would ever want from a caching framework... However, there seems to be a central caching node(s) that is required which b...
I'm using C++/CLI on Windows. It's an MFC app built with /clr.
I want to test how long it takes my application to start up. The first time it took 10s, but subsequently it took 4s, 4s, 5s. I'm assuming this is due to Windows caching the DLLs.
Is there some tool that will allow me to remove a directory from the cache, so that my test co...
I have a question concerning the caching of webcontent.
I've created a UIWebview component
Code:
NSString *urlAddress = @"http://192.168.55.101/~test/mobile/iphone/ads/v0.1/";
//URL OBJECT footer
UIWebView *aWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320 , 100)];
NSURL *url = [NSURL URLWithString:urlAddress];
...
Hello all, and thanks in advance for the help.
Background -
I am writing a PHP script that needs to figure out the destination the caller is trying to reach. Telephony prefixes are strings that identify a destination. For each call, the program must find the longest prefix that matches the string. For example the number 30561234567 wou...
I have a set of custom PHP scripts. They load a main PHP file (to include other files, set settings, etc.) From this script I'd like to insert a callback function that is called by the scripts that included the main file just before ending.
What I intend to do is make a simple custom output cache with ob_get_contents(). I want to do ob_...
The scenario:
I'm using Telerik Report Viewer in my web application to show large reports (about 5000 records from my DB, resulting in a 80 page document to display).
Everything was working just fine... but on this terrible day my app starts to throw a "Out of Memory" exception.
I realize that Telerik Report was caching all data and onl...
I want to be able to cache a few objects without referencing System.Web. I want sliding expiration and little more... Is there really no where to go but to build my own using a Dictionary and some selfmade expiration of objects - or are there something in the .NET framework I've totally missed out on?
...
Is this an effective way to set the cache item dependent on the query?
HttpRuntime.Cache.Insert(
"ListLanguages",
list,
new SqlCacheDependency(command),
DateTime.UtcNow.AddMinutes(AppConfiguration.CacheExpiration.MinimumActivity),
Cache.NoSlidingExpirati...
Apache HttpClient does not have caching as far as I can see so my question is do you know about a Http library that can cache to disk? It would be fun to implement it myself but before i do it, it is better to check if it already exists :-)
Requirements:
Support for Http 1.1
Can cache to disk (ex: a folder)
Support for a maximum cache s...
Hi people,
on all the "speed up your website" sites and books they always tell us to minimize HTTP requests at all costs. This is fine and nice but what if that means that on every page you have to reload 120kb again and again and again because the user cache is empty?
If i use 5 js files on every page of my website, wouldnt it be bett...
I've read about APC that it speeds up multiple php file sites. So I have this particular project in PHP with many files and i discover that require_once and parsing only class definitions (without executing them) takes most time.
So I've installed APC on my CentOS 5 server. I moved apc.php to my webserver and it displays
Hits: 1 (50....
Most of the web applications have pages that are "almost static" in the sense they change really very rarely their content, but when it changes this should be seen immediately on the page.
So if you have some OutputCache attribute that permits to cache forever on your PageShow method, the cache should be invalidated immediately by a cal...