caching

ASP.Net MVC Unwanted Caching Issue

I've got an issue with an ASP.Net MVC project in that on most of my edit screens if I make a change, save it then go back into my edit screen the new changes are not shown, if I then press F5 to refresh the page the changes are then shown. I'm guessing this is some sort of caching issue? I've never had this problem with WebForms, I assum...

Django: Simple rate limiting

Many of my views fetch external resources. I want to make sure that under heavy load I don't blow up the remote sites (and/or get banned). I only have 1 crawler so having a central lock will work fine. So the details: I want to allow at most 3 queries to a host per second, and have the rest block for a maximum of 15 seconds. How could ...

Cache Refresh in Chrome

I dunno what exactly it's called, by cache refresh I mean, refresh the page after clearing its cache. I don't want to clear the entire browser cache. I prefer Chrome's Dev panel against firebug... don't ask me why. But I can't seem to cache refresh my pages. In FF, I know it to be Shift+Refresh. In chrome, I've tried Ctrl+R, Ctrl+Refre...

How do I build a search with the number of results for each category?

I need to show the number of results for a given category, and hide any categories that give no results. Example: This Yahoo!Jobs page shows the number of results in categories like City, Job Category, Experience etc. I work in C#/Asp.Net, and fear that our server will choke without some serious caching and sql optimization. How woul...

Can ASP.NET outputCacheProfiles be used with Response.Cache?

When using the @OutputCache directive, you can define cache profiles as follows in web.config: <system.web> <caching> <outputCacheSettings> <outputCacheProfiles> <add name="myprofile" duration="30" enabled="true" varyByParam="myfield"/> </outputCacheProfiles> </outputCacheSettings> </caching> </system.web...

What is stored in ~/Library/Caches/<my-app-bundle>/Cache.db ?

I'm really wondering what is stored in the mentioned path? A side question: May a developer use this path (at least the folder) to store his own temp data? ...

automatic refresh of ap.net Cache each night

Hello! I have fairly big ArrayList which I want to have recalculated and put in Cache each night around 2. How can I achieve that? There's option to set time of expiration, but that doesn't cover up my needs. ...

How can i deactivate the CodeIgniter Cache only for a controller ?

Good morning readers, I have a little problem with caching feature of CI. When i generate a view with data from database, the data are always the same until il manually delete all cache files. Is there any way to delete / invalidate the cache ? I tried to set the cache limit to 1 minute, but i didn't work. Thanks for incoming answer...

NHibernate cache query

Hi! Is it any possible to query the NHibernate cache to find whether my object is there or no? Thank you! ...

Custom ASP.NET MVC cache controllers in a shared hosting environment?

I'm using custom controllers that cache static resources (CSS, JS, etc.) and images. I'm currently working with a hosting provider that has set me up under a full trust profile. Despite being in full trust, my controllers fail because the caching strategy relies on the File class to directly open a resource file prior to treatment and st...

Caching data vs. recalculating in PHP

Here's the lowdown of the situation. I am creating a role-playing game with PHP. The combat system consists of the various buffs and debuffs. The combat is likely to take several turns (it's against an AI). I am of two mind about ensuring the correctness of the player's data (buffs and debuffs expire over time. A +5 strength buff may la...

Force browser to re-read cached images

Hello. Somewhere in CSS: .button { background: url(../Images/button.png); } Problem: for performance reason all static content has expiration headers and is cached by browser. When image changes user must refresh cache (Ctrl+F5 in IE). I want images to be cached, but when necessary they must be automatically reloaded. Question: ...

distributed caching on mono

Hi, I'm searching for a distributed caching solution on mono similar to java's terracotta and infinispan. I want to use it as a level 2 cache for nhibernate. Velocity and sharedcache have no mono support, and memcached isn't distributed nor have high availability. Best Regards, sirmak ...

Hibernate 2nd level cache not caching committed entities

I'm wondering if it's possible for Hibernate second level cache (we're using EHCache) to allow an application to cache an Entity that has been comitted to the DB if it knows that no other applications are modifying the DB. My thought is that if I update record A, then I know the value of record A and should be able to cache that, JVM cl...

Old content appearing on site. Auto Clear Cache?

I have a website that is updated regularly and I am having a problem where old content is showing up on the page. It can be fixed by refreshing a few times or clearing the cache. I am looking for a solution so no data is stored on the PC and the site is forced to refresh each time. Perhaps an auto cache clear plugin or something of the l...

Retain data in WebView (Android)

I have various pieces of generated HTML/JS that I load into Activity with WebView#loadDataWithBaseURL. Is there a way to not load in again and again during Activity lifecycle? For example - user goes to check the message and then calls the app again. At that point - the Activity is stopped and probably destroyed, when it's loaded again I...

Many requests to one picture file which is referenced from CSS

Hi, I have created CSS-sprite file for reducing number of requests to the server. But when the page is loaded, I can see in Firebug many GET requests to the same picture file (accoring to number of CSS rules applied with that picture). Probably, from that bunch of requests only one is real and the rest are taken from browser's cache, ...

cache key generation

Hi, I'm using ehcache (via the Grails plugin). The method that adds objects to the cache requires the keys to be serializable, so a typical usage would be: def key = 22 def someObject = new Object(); cacheService.cache(key, true, someObject) (The boolean param indicates whether the object should be added to a distributed or local cac...

best way to store .net session data

Hi, I'm investigating for a free, high available, high performance solution for caching or storing .net session data (for a high traffic website). I don't want to use a db (db is the bottleneck on traffic increase). There're some key/value stores, but as far as I know they don't support .net objects. And there're some distributed or r...

Where can i find the: 1) cache hits and 2) cache lookup stats in SQL Server

First of, the question is not: how to see SQL Server cache hit rate! For that one i already know of a view that contains that precises statistic. My question is in fact: where are the raw statistics from where the hit ratio is calculated? Sql server, in msdn pages, states that the cache hit ratio is the total cache hits divided by the ...