I have a bunch of objects all of one class which I want to store in the web cache.
There could be a few hundred of these objects.
I want objects to have their own individual expiry times, and expire from the cache individually.
I want to be able to tell how many of these objects are in the cache, and iterate over these objects alone (re...
Last Thursday we just released a new version of our website. The big change was we converted from Prototype to jQuery. This of course included lots of changes to referenced javascript files. There were new css file changes as well. Unfortunately, many of our customers aren't seeing the changes. I even had one customer clear their browser...
Is there any way to find the number of bytes of memory that are currently in the HttpContext.Cache?
I've found where you can get the physical memory limit using EffectivePrivateBytesLimit or EffectivePercentagePhysicalMemoryLimit, but I'm having difficulties finding the current physical memory usage.
Any ideas ?
---UPDATE---
Afer som...
Im creating an image which has some text in it, for every customer, the image contains their name and I use the Graphics.DrawString function to create this on the fly, however I should not need to create this image more than once, simply because the name of the customer should hardly change, but I do not want to store it on disk.
Now I ...
Hello,
I have just started out with testing some php mvc framework
In it, it has this function that throws an error.
The cachedirectory is set to /tmp/cache from the config file
additional:
The php is hosted on an IIS server.
Can someone help me out to get this working somehow?
This is the function within the class
function setCach...
I am using Delphi 6 with DevExpress cxScheduler components to sync tasks and events in our application with Outlook... When Outlook is open, and an existing event or task is updated in Outlook - our app does not see the new changes until Outlook is closed - so if we run the sync process without closing Outlook, our app overwrites the ch...
I recently read in a presentation on Scribd that Facebook had benchmarked a variety of locking mechanisms for APC including file locks (default), IPC semaphore locks, linux Futex locks, pthread mutex locks, and spin locks. You can view this presentation by clicking the following link: APC@Facebook
I was wondering if anybody knew off ha...
Hi,
I am trying to clear the cache for my integration testing. I could find "InvalidateCache" attribute in Spring documentation, but i do not want to touch the real function and change the attribute.
I think I can't use .Net's HttpContext.Cache.Remove since my integration test application is not web application.
Anyone knows how to do...
I'm storing a set of messages in a SQL table. Each message has a size and there's a column in the table which contains the size of the message. These messages are connected to accounts. When a new message arrives, I need to check that the current account size + the new message size is less than the quota for the account (which is just a ...
Hi,
We are setting Window.Location through JavaScript depending on the value selected by the user in a dropdown. The url we are setting the location to does not have HTTP Caching set up explicitly.
However, we have observed that in certain cases, the expires header is set in the future by 1 second. Whenever this happens, changing windo...
I am using internet IE 7, IE 8
My application in running in dns fail over environment with primary and back up server. As the primary server is down, failover changes to the secondary server after 2 - 3 minutes.
But the problem is, the current opened page in IE is still sending requests to the primary server due to dns caching, which ...
I read an article of an indie game developer who is using Google AppEngine to cache his main site and blog, to protect provide high-availability during traffic spikes (Digg, Slashdot effect).
Wolfire Blog - Google App Engine for Indie Developers
There's not a lot of detail on the exactly what they developed in Python on Google AppEngin...
I'm troubleshooting a caching issue on a set of secured pages and have realized that the Header needs to be modified for all Responses. As I put together a solution, I want to know the difference between HttpContext.Current.Response and Page.Response and when each object should be used in an app.
Thanks.
...
I'm using the SqlProfileProvider on one of my websites and in one page I need to fetch the whole list of profiles (it is an intranet).
The method that I use is the ProfileManager.GetAllProfiles(). The problem is that its performance is really bad and it slows down the website considerably.
Therefore, I was thinking of caching the resu...
I am using the SqlProfileProvider to store my user profiles in an asp.net web application.
What I am looking for is a way to fetch all user profiles (I would prefer a search API, but there is not one available) with some reasonable performance.
Using the ProfileManager.GetAllProfiles kills the performance of my application.
I was thi...
I have an httpmodule that reads from a csv file for redirection rules.
However, since it's an httpmodule and it is checking on every request, I obviously don't want to read the file every time.
What are some strategies to cache the rules (in an in Array) so that I do not have to read the file on every request?
Update: Using .NET 2.0
...
I'm using jquery ajax, how to clear the cache of the ajax result?
...
Hi,
Is it possible to declaratively set clientCaching for an Action using the web.config in IIS7.
We need to set an expiry value of 1 day for our Home/Index Action. As of now we are doing this using a filter attribute. Is it possible to accomplish the same declaratively?
We are able to do it for static content, but not for Action Method...
Hi All:
Since we're developing a web-based project using django. we cache the db operation to make a better performance. But I'm wondering whether we need cache the array.
the code sample like this:
ABigArray = {
"1" : {
"name" : "xx",
"gender" "xxx",
...
},
"2" : {
...
},
...
}
class Items:
de...
So after much help and research I've FINALLY been able to get the 301 redirects working via .htaccess file, but I noticed that unless I actually hit 'refresh' on my browser it will not redirect the page due to simply reading the cached site.
I've tried closing all browsers, inserting the .htaccess file, and THEN opening a new browser, b...