caching

ASP.NET Cache object issues after migration from IIS 5 to IIS 6

别说谁变了你拦得住时间么 提交于 2019-12-25 03:37:08
问题 I'm experiencing an issue where the ASP.NET Cache objects are cleared out every minute or so. The proper behavior is that the cache objects should last 24 hours. This issue started recently when our public web servers were recently upgraded from IIS 5 to IIS 6. The site in question gets about 15,000 page views/hour during peak times. The server admin speculates it could be because of thread recycling in IIS 6. Any thoughts? 回答1: Check the event log - that will tell you if the process is

Infinispan - synchronization between node in a cluster

 ̄綄美尐妖づ 提交于 2019-12-25 03:36:30
问题 have you any idea of when we add a new node in a existant cluster in infinispan , how many times the synchronizations between nodes will take ? and if try to call a service in my cache before the synchronization are terminated , i will have an error ? thank you for your help. 回答1: Synchronization, or state transfer, is non-blocking, so you can continue executing operations while that happens. 来源: https://stackoverflow.com/questions/53779011/infinispan-synchronization-between-node-in-a-cluster

Travis CI cache a single file at a specified location

久未见 提交于 2019-12-25 03:16:58
问题 I am building a Ruby project on Travis CI and I use Gemfile ans Bundler to manage dependencies. My .travis.yml contains only one line about caching: cache: bundler And I rely on this in other places (Travis's default install command, cache directories, plus an extra bundle clean before uploading cache). By default, Gemfile.lock is not cached. I want to cache it to make Bundler to skip dependency resolution and use the cached Gemfile.lock . I haven't found a valid solution for this. Any ideas?

SmartImageVIew, I would like to force refresh (and not caching)

不羁的心 提交于 2019-12-25 02:54:07
问题 I am using this useful class that allow smart online downloading of images (from the loopj guys). It works fine, but i cannot force the "refresh" in the case of same name images that could have been changed in the server (example: I update my profile picture). So at the moment I am forcing the brutal delete of my app cache dir before the setImageUrl(). It works, and some FileNotFoundException is raised. No big deal, but I hate having something that works "without really working", I don't know

Using friendly URLs to avoid cache problem

ε祈祈猫儿з 提交于 2019-12-25 02:46:31
问题 In my application (*) I sometimes needs to open (in the default user browser) a URL with some parameters. e.g.: http://www.mySite.com/myPage.php?p1=param1&p2=param2&p3=param3 On some computers, I had cache problem, even if I send different parameters, the browser opened the page with the old parameters. I tried to add time-stamp as the first parameter: e.g.: http://www.mySite.com/myPage.php?pXXX=XXX&p1=param1&p2=param2&p3=param3 where XXX = Now.ToString("ssmmHHddMMyy") but still, on some

With BreezeJs how do you handle updating cache for user1 after user2 has made changes?

六眼飞鱼酱① 提交于 2019-12-25 02:25:50
问题 Trying to find the proper solution for breezejs, if user1/device1 has a cached list of projects and user2/device2 updates one of those records, user1 still sees stale data unless they manually refresh. What are the solutions to make sure User1 gets the new upated data? Is there something I can do on save of entity to remove it from everyone's cache? Is the cache based per user? 回答1: The Breeze EntityManager cache is a client side cache, so each user/device/application will have its own data.

ASP.NET MVC. How to clear values cached by [OutputCacheAttribute]

对着背影说爱祢 提交于 2019-12-25 02:22:58
问题 I use [OutputCacheAttribute] to cache some actions. Everything works fine. Let's say I set its Duration property to 1 hour. But I want to be able to clear cached values. Is it possible? 回答1: After looking at [OutputCacheAttribute] source code, it seems that the only possible solution is to implement a new class derived from MemoryCache and set it OutputCacheAttribute.ChildActionCache property. This class will be use some custom prefix for all cached keys, so I'll be quite easy to find them

what does firefox decide not to cache?

和自甴很熟 提交于 2019-12-25 02:22:23
问题 I'm viewing the network traffic from my rails application using firebug and I see that the css and javascript files are not being cached. In the page, are things like: <script src="/javascripts/prototype.js?1315256241" type="text/javascript"></script> and it appears as if the ?1315256241 causes FF to not cache the item. But the ?1315256241 is a "feature" of Rails that was introduced a few years back. So I'm surprised that it prevents the item from being cached yet no one has asked about it or

Freemarker Template Cache are in same content when locale are different, is it a concern on wasting memory?

流过昼夜 提交于 2019-12-25 02:17:06
问题 When I debug the free marker template cache, I noticed that for the same FTL source file, the freemarker template cache object has content, locale, encoding properties. When this cache value was pushed into cache with TemplateKey, the Key includes file name, locale, encoding, parse etc. The problem is: For same FTL file,if it has different locale, same file content will be cached multiple times in memory (per different locale, encoding etc). For a large web site which support all locales,

controlling browser cache

和自甴很熟 提交于 2019-12-25 02:16:34
问题 so suppose i have a whole bunch of images in a page, and then I go to a different url that has the exact same images and layout, since the url is different the browser will reload all images,layout etc and will not display them from the cache even though they are the exact same images/layout.... is there a way to prevent this and control the way browser caches things using only javascript, php, or html? EDIT/Addition also what's interesting is that first of all I have two copies of the same