The block or element can change depending on the page being viewed.

Related topics

4 uses of DRUPAL_CACHE_PER_PAGE
BlockCacheTestCase::testCachePerPage in modules/block/block.test
Test DRUPAL_CACHE_PER_PAGE.
book_block_info in modules/book/book.module
Implements hook_block_info().
drupal_render_cid_parts in includes/common.inc
Returns cache ID parts for building a cache ID.
profile_block_info in modules/profile/profile.module
Implements hook_block_info().

File

includes/common.inc, line 156
Common functions that many Drupal modules will need to reference.

Code

define('DRUPAL_CACHE_PER_PAGE', 0x0004)

Comments

In some cases, you might have several pages served by the same node. In such cases, the exact meaning of a "page" is important.

The definition of a 'page' as referred by DRUPAL_CACHE_PER_PAGE is the same definition as found in function request_uri(). See drupal_render_cid_parts()