Sunday 20 June 2004 1:27:55 pm
My 2 cents, as i also had problems with this term: The key(s) of a cache-block are used to uniquely identify, create and use that cache block, depending on the value of the cache block.
Example 1: You have a cache block, which should be cached individually for each user (User information or so). So, you would use the user ID as cache blocks key.
Example 2: You have a cache block, which should be cached individually for each webpage (Navigation and page path). So, you would use the URL as cache blocks key. Example 3: You have a cache block, which should be cached individually for each website and for each role combination (role-depending Navigation and page path). So, you would use the URL and the role ID array as cache blocks keys.
Note:
The number of cache blocks created as files in the filesystem depends on the possible value combinations of all keys of that cache block:
For example 1: If you have 2000 users, you would get up to 2000 cache blocks
For example 2: If you have 10.000 webpages (different URLs), you would get up to 10.000 cache blocks For example 3: If you have 2.000 users and 10.000 webpages (different URLs), you would get up to 2.000 x 10.000 = 20.000.000 cache blocks, as the cache block key is a combination of the two keys. It would be nice, if some ezCrew member or ez Guru would tell us, if this is really true ;)
Marco
http://www.hyperroad-design.com
|