Ted talks of a "Player Cache" existing within Flash Player 9.3 that allows the Flex components to be reused across domains.
It would be an extra-benefit if my components can be reused across my multiple websites.
Is this Flex only? (all code passed thru the Flex 3 compiler "mxmlc")
Will Flash AS2 components be cached as well?
Will Fla...
I want to make sure my sweeper is being called as appropriate so I tried adding something like this:
it "should clear the cache" do
@foo = Foo.new(@create_params)
Foo.should_receive(:new).with(@create_params).and_return(@foo)
FooSweeper.should_receive(:after_save).with(@foo)
post :create, @create_params
end
But I just ...
Pretty horrendous newbie question here.
I'm looking at the following apple example source code:
/*
Cache the formatter. Normally you would use one of the date formatter styles (such as NSDateFormatterShortStyle), but here we want a specific format that excludes seconds.
*/
static NSDateFormatter *dateFormatter = nil;
if (dateFor...
Hello,
I need to load (de-serialize) a pre-computed list of integers from a file in a Python script (into a Python list). The list is large (upto millions of items), and I can choose the format I store it in, as long as loading is fastest.
Which is the fastest method, and why?
Using import on a .py file that just contains the list as...
I accidentally deleted a PDF file from both my web server and my development machine. I want to check my browser's cache to see if there's a copy of it in there. Where do I look? I use both Firefox and Internet Explorer, so I'd like to search both of their caches.
...
I have a bunch of simple lookup tables cached in my asp.net application since the source data is on a seperate server from our main web architecture and it changes infrequently. I've been following answers here and various documentation and I have my initial load function call the following:
HttpContext.Current.Cache.Insert("CheckLocati...
I'm working on an ASP.NET MVC project and I've come to the point where I want to start considering my caching strategy. I've tried to leave my framework as open as possible for the use in caching.
From what I heard during Scott Hanselman's podcast StackOverflow.com uses page output caching and zips that content and puts it into RAM. T...
I have an app that hosts several accounts, each mapped to its own domain.
I want to define different page caching directories for each account.
I have this in my application controller (before filter):
self.page_cache_directory = RAILS_ROOT+"/public/cache/" + @account.name
But that doesn't seem right because it effectively overwrite...
I'm using the new asp.net chart control within a user control. I tried to use the output cache directive to cache the user control for 30 seconds. The caching is custom depending on the logged in user.
The chart data is being lost while the control is cached. I see the chart one every 30 seconds but at no point inbetween. Am I missing s...
The Scenario
I am building a custom CMS for a communications application. The users can upload images to the server and then later reference them in posts they write using markdown. Images are stored in a database and referenced with a url of the form images/{id}. A custom image handler retrieves these and sets a far future expires h...
In the Apache's mod_expires module, there is the Expires directive with two base time periods:
access, and modification
ExpiresByType text/html "access plus 30 days"
understandably means, the cache will request for fresh content after 30 days.
However,
ExpiresByType text/html "modification plus 2 hours"
doesn't make intuitive sense.
...
Hello all,
I'm using the OutputCache on my webuser control (.ascx)
<%@ OutputCache Duration="1000" VaryByParam="none" %>
I would like to retain the cache for next 1000 seconds, but when a specific page on my site is loaded, I would like to remove/flush/refresh the cache. Like, I want to clear the cache when MyPage.aspx is loaded. Can ...
Hi all
Why are my session variables being dropped here?
I submit a form using the submit button and create session variables of the values to allow them to be carried to other pages. All's fine. If I now move back and forward between the form and form handler using the browser buttons (as some user sometime will probably do) Firefox and...
var listings = new List<FPListing>();
if (Cache["Listings"] == null)
{
listings = GetFPListings(Industry);
Cache["Listings"] = listings;
}
else
{
listings = (List<FPListing>)Cache["Listings"];
}
The cast throws this exception
Unable to cast object of type
'System.Collections.Generic.List1[Listings+FPListing]'
to ty...
I'm talking about things like page/stylesheet caching, minifying javascript, etc.
Half of me thinks it's better to do these things as early as possible while still in development so I can be consciously aware of more realistic speed and response issues as well as interacting with something that more closely resembles what will be deploy...
I'm developing a windows client app and would like to cache some data. It's a pretty simple scenario, basically just keeping some data in memory so the app can avoid crashing if the network connection drops out.
I could roll my own cache solution, or use the EntLib caching block, but am looking for a few more alternatives before committ...
I have created a user control in my application "header.ascx", I am pasing a selectedMenu attribute to this control on which the control selects the selectedMenu value specified. Suppose, I have passed value "home" or "search" then it will select (highlight it) the search menu.
I want to cache this control, When the value of the selecte...
I have an object that is expensive to create, which uses some unmanaged resources that must be explicitly freed when done with and so implement IDisposable(). I would like a cache for instance of these expensive resources so that the creation cost is minimized, but I am having trouble knowing how to deal with the disposal.
If the met...
I have an external JS file that I include in my ASPX page. Whenever I make changes to the JS, I need to close the browser and reopen it to see the changes. I have tried Ctrl F5 to refresh the cached JS copy but that doesn't work in IE.
Is there some way to not restart the browser to see the updated changes?
...
Ok, I have a pretty complex silverlight app that gets its data from a WCF service (asp.net hosted service layer) which in turn calls into a data layer that calls stored procedures in a SQL 2005 DB to extract the needed data. So the round trip goes like this:
Silverlight App --> WCF Service --> Data Layer --> DB --> Data Layer --> WCF S...