caching

How to use cache in cakephp

I want to use cache in CakePHP. How do I use it? ...

Which symbol represents a distributed cache?

In a system architecture diagram, just like a "cloud" represents the internet, what general symbol would you use to depict a distributed cache e.g. Coherence or JBoss? ...

PCI/DSS: Data at Rest

Would you consider the use of caching products in the category of data at rest? ...

ASP.NET Persistent Caching ("Lazy loading"-style?)

Hi! I'm having some trouble getting my cache to work the way I want. The problem: The process of retrieving the requested data is very time consuming. If using standard ASP.NET caching some users will take the "hit" of retrieving the data. This is not acceptable. The solution?: It is not super important that the data is 100% current. ...

Caching best practices - Single object or multiple entries?

Does anyone have any advice on which method is better when caching data in a C# ASP.net application? I am currently using a combination of two approaches, with some data (List, dictionaries, the usual domain-specific information) being put directly into the cache and boxed when needed, and some data being kept inside a globaldata class,...

Caching moderate amounts of data in a web app - DB or flat files?

A web app I'm working on requires frequent parsing of diverse web resources (HTML, XML, RSS, etc). Once downloaded, I need to cache these resources to minimize network load. The app requires a very straightforward cache policy: only re-download a cached resource when more than X minutes have passed since the access time. Should I: S...

F# using sequence cache correctly

I'm trying to use Seq.cache with a function that I made that returns a sequence of primes up to a number N excluding the number 1. I'm having trouble figuring out how to keep the cached sequence in scope but still use it in my definition. let rec primesNot1 n = {2 .. n} |> Seq.filter (fun i -> (primesNot1 (i / 2) |> S...

SQL Server 2005 cache dependency - is there a limit to the no. of registered tables?

I'm trying to implement sql server 2005 cache dependency in ASP.Net 3.5. I have a lot of lookup tables (around 50 in all) in my database that will hardly change after the initial setup. I plan to register all of them in the SQLCacheDependency. I'm wondering if there will be a performance hit when so many tables are registered, because SQ...

Multiple counter cache columns with aasm

I am looking for a way to cache the number of each state. I have done counter caching before, but is there a way to create multiple counter_cache columns for each state and keep them updated or should I look elsewhere for caching these values. aasm_column :state aasm_initial_state :unopened aasm_state :unopened aasm_state :contacted a...

Flash caching

I have a flash movie that dynamically generates urls based on some params. Snip: <object data="images/flash/header.swf?button=1&lang=foo... The problem is that both IE and FF do not get the swf from cache when the params differ. How can I get around this and make the browser cache the swf, ignoring the params values? ...

Problem in Caching Images in ASP.Net in IIS 7

I have implemented caching Images in my website, It is working fine in IIS 6 but not working in IIS 7 problem is images not shown on my website on iis7 hosted server but shown on iss6 hosted server I have implemented caching using this Article.... http://www.codeproject.com/KB/aspnet/CachingImagesInASPNET.aspx Does anyone have any idea ...

Do connection string DNS lookups get cached?

Suppose the following: I have a database set up on database.mywebsite.com, which resolves to IP 111.111.1.1, running from a local DNS server on our network. I have countless ASP, ASP.NET and WinForms applications that use a connection string utilising database.mywebsite.com as the server name, all running from the internal network. Th...

Prevent flex from caching an external resource

I'm writing a flex application that polls an xml file on the server to check for updated data every few seconds, and I'm having trouble preventing it from caching the data and failing to respond to it being updated. I've attempted to set headers using the IIS control panel to use the following, without any luck: CacheControl: no-cache...

Extending Enterprise Library Caching Block - how to get instance of MyCacheManager?

Hi, Since the default implementation of CacheManager doesn't provide GetItemsOfType<> (and many others) I thought of building my own: [ConfigurationElementType(typeof(CustomCacheManagerData))] public class MyCacheManager : ICacheManager { //The same constructor as in CacheAppBlock - CacheManager, but it's public here: public My...

Cache problem with DropDownList and VaryByControl

I have a page with a single dropdown. Depending on what the user chooses in this dropdown, a pretty huge report is generated. The cache directive for the page reads: <%@ OutputCache Duration="14400" VaryByParam="none" VaryByControl="lstUsers" %> The drop-down is defined as: <asp:DropDownList ID="lstUsers" runat="server" AutoPostBack=...

Harvesting Dynamic HTTP Content to produce Replicating HTTP Static Content

I have a slowly evolving dynamic website served from J2EE. The response time and load capacity of the server are inadequate for client needs. Moreover, ad hoc requests can unexpectedly affect other services running on the same application server/database. I know the reasons and can't address them in the short term. I understand HTTP ...

SqlCacheDependency in n-Tier Architekture

I read some articles about SqlCacheDependency. I think it is a really cool way for updating caches, but i'm not sure how i can handle this technologie if my application is a n-tier architekture. Is this just useful if my program is a small webapplication, or is there also a way for use in big n-tier architektures? ...

Best approach to cache Counts from SQL tables ?

I would like to develop a Forum from scratch, with special needs and customization. I would like to prepare my forum for intensive usage and wondering how to cache things like User posts count and User replies count. Having only three tables, tblForum, tblForumTopics, tblForumReplies, what is the best approach of cache the User topics ...

Performance regarding cached IEnumerable<T> implementation

[EDIT] The new Reactive Framework solves the problem outlined below, using the System.Linq.EnumerableEx.MemoizeAll() extension method. Internally, MemoizeAll() uses a System.Linq.EnumerableEx.MemoizeAllEnumerable<T> (found in the System.Interactive assembly), which is similar to my ThreadSafeCachedEnumerable<T> (sorta). Here's an awfu...

ASP.Net: List of Object in httpcontext.current.cache

Is there a way to look through the cache for all objects in the cache? I'm dynamically creating objects and I need to periodically go through the list to purge out objects I'm no longer using. ...