Why use your application-level cache if database already provides caching?
Modern database provide caching support. Most of the ORM frameworks cache retrieved data too. Why this duplication is necessary? ...
Modern database provide caching support. Most of the ORM frameworks cache retrieved data too. Why this duplication is necessary? ...
Hi, I have imported an SQL Stored Procedure using the built-in 'Function Import' of Visual Studio 2010. I was wondering if there is a built-in, or custom, way to cache the results, just like you can cache a Control, or a Page, or even just a string; using the built-in Cache in .NET If this needs more clarification, just let me know. ...
I have the following .NET VB code to set and read objects in cache on a per user basis (i.e. a bit like session) '' Public Shared Sub CacheSet(ByVal Key As String, ByVal Value As Object) Dim userID As String = HttpContext.Current.User.Identity.Name HttpContext.Current.Cache(Key & "_" & userID) = Value End Sub Public Share...
I'm caching an index action with the following: caches_action :index, :cache_path => Proc.new { |c| c.params } expire_action :action => :index The expire_action seems to only expire the index action without any parameters. How can I expire all the caches_action related to index ? (it is a Rails 2.3.5 application) ...
Hi guys, I'm using imagecache_create_path() and getimagesize() to get the path of a imagecache-generated image and its dimensions. However, if it's the first time we access the page that image doesn't exist yet and imagecache_create_path doesn't generate it either. Here's the code: // we get the image path from a preset (always return...
Does anyone store things in http application cache anymore or system.web.cache only? Or are they the same thing under the covers? ...
Hi folks, in mondrian how can i flush the caché just after my ETL program ends, ETL is running in EJB on the same AppServer where is running Mondrian War. Cheers. ...
I am experiencing a problem with IE caching the results of an action method. Other articles I found were related to security and the [Authorize] attribute. This problem has nothing to do with security. This is a very simple "record a vote, grab the average, return the avg and the number of votes" method. The only slightly interest...
We want to make an audio based web based app that will have many sound snippets. We want to cache these files so that performance is good and not dependent on network speed. Can HTML5 cache audio for offline mode? ...
I want to find a minimal set of headers, that work with "all" caches and browsers (also when using HTTPS!) On my web site, I'll have three kinds of resources: (1) Forever cacheable (public / equal for all users) Example: 0A470E87CC58EE133616F402B5DDFE1C.cache.html (auto generated by GWT) These files are automatically assigned a new...
My site: http://newwebsite01.endurit.com/Dienstleistungen/Internet-Solutions.aspx ...Crashes in IE6! Statusbar always shows remaining items.... If you click anything while you see this message it crashes. If you do nothing and wait about 4minutes it loads the site. I just googled and found several solutions why IE6 could crashing and b...
I wrote one script which is running on the linux machine.It fetches data from one url and displays the content on a page. The problem I am facing is some time if I refresh the page 4-5 times it displays the old content and not the latest one. The problem could be because of caching proxy which is still caching old content. Please tell m...
Hi, I'm currently measuring the time spent to load a web page from a C# program. The Visual Studio solution has a console program and an ASP.NET website with just one page. The website is hosted on ASP.NET Development Server. The console application queries the web page like this: bool isSuccess; Stopwatch timeSpentToDownloadPage = S...
Is application state (http://msdn.microsoft.com/en-us/library/ms178594.aspx) the same as using the System.Web.Caching API? i.e. System.web.httpcontent.current.cache[somekey] ? ...
I have a PHP file that will return the same thing with the same $_GET parameters every time -- it's deterministic. Unfortunately for efficiency (this file is requested very often), Apache defaults to a "200 OK" response whenever a PHP page is requested, making the user download the file again. Is there any way to send a 304 Not Modifie...
I'm creating a ASP.NET MVC 2 application that envolve a section like questions here in stackoverflow (mine is with exams is another kind of application but can be extrapolate to same general idea of SO). OK I'm creating a cache per page, its mean something like this: [OutputCache(Duration=60, VaryByParam="page")] ActionResult AllQuesti...
Hi folks, this is the current code in ASP.NET MVC2 (RTM) System.Web.Mvc.AuthorizeAttribute class :- public virtual void OnAuthorization(AuthorizationContext filterContext) { if (filterContext == null) { throw new ArgumentNullException("filterContext"); } if (this.AuthorizeCore(filterContext.HttpContext)) { ...
Background I've been reading through various books and articles to learn about processor caches, cache consistency, and memory barriers in the context of concurrent execution. So far though, I have been unable to determine whether a common coding practice of mine is safe in the strictest sense. Assumptions The following pseudo-code i...
I just installed Google's Page Speed plugin to Firebug, and everything looks good except for caching. I have set headers to cache my JS and CSS files, but it says the images aren't being cached. How can I make sure the images get cached for 30 days? These are static images, so I can't just add the headers with PHP like I did with the ...
In an ASP.NET 3.5 VB web app, I successfully manage to cache an object containing several personal details such as name, address, etc. One of the items is CreditNum which I'd like to change in the cache on the fly. Is there a way to access this directly in the cache or do I have to destroy and rebuild the whole object just to change th...