Ticket #21 (new enhancement)

Opened 8 years ago

Last modified 8 years ago

Left and right block selective caching!

Reported by: rm Assigned to:
Priority: normal Milestone:
Component: module - blocks Severity: feature request
Keywords: Cc:

Description

I have been experimenting with enabling caching on my site. It greatly improves page rendering speed. In some instances, the difference is dramatic.

However, I have a problem with the architecture of block caching. Perhaps, I am misunderstanding it. So apologies in advance. :)

It seems that the blocks are cached per role and per page. In other words, I understand that you share the cache between users with the same role.

Worse, suppose I have blocks that need to be updated at different frequencies than other blocks. For example, I could use the random message block to display a site tip every N impressions, or every impression, or every 10 minutes, whatever. If I have caching on, and the cache life is, say, a day, then I cannot do that.

So, I am thinking I require the following capabilities. I am wondering if other people have thoughts on their usefulness to them.

1. Caching specification should be per block. The block is cached separately from other blocks.

2. The specification should indicate whether it is cached per role, per user, or for everyone.

3. The specification should also indicate the criteria for invaliding the cache. E.g., time, impressions, database query, API call (see 4).

4. There should be an API for invalidating the cache for a specific block (by role, or by user id).

5. The current caching regimen should be preserved for backward compatibility. I.e., any changes to core code, should not require people to fix their sites.

Anyway, apologies for the random thoughts. I would appreciate you thoughts (random or otherwise). :)

Thanks,

Louay

Change History

12/18/05 09:19:31 changed by demian

  • summary changed from Left and right block selective caching! to Left and right block selective caching!.
  • milestone set to 0.5.5.

i was thinking of a cache mgr, including some of your suggestions and more

01/23/06 13:58:03 changed by demian

  • milestone changed from 0.5.5 to 0.5.6.

02/16/06 07:10:52 changed by demian

  • type changed from defect to enhancement.

03/01/06 07:08:51 changed by rm

  • owner deleted.

03/05/06 18:42:01 changed by demian

  • milestone deleted.