Function __global->set_cache_entry

Definitions

sources/caches2.php

  • Put a result into the cache.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$codename MINIID_TEXT required parameter N/A N/A The codename to check for caching
$ttl integer required parameter N/A N/A The TTL of what is being cached in minutes
$cache_identifier LONG_TEXT required parameter N/A N/A The requisite situational information (a serialized map) [-> further restraints when reading]
$cache mixed required parameter N/A N/A The result we are caching
$special_cache_flags integer 24 N/A N/A Special cache flags
$_langs_required array [] N/A N/A A list of the language files that need loading to use Tempcode embedded in the cache
$_javascripts_required array [] N/A N/A A list of the javascript files that need loading to use Tempcode embedded in the cache
$_csss_required array [] N/A N/A A list of the css files that need loading to use Tempcode embedded in the cache
$tempcode boolean False N/A N/A Whether we are caching Tempcode (needs special care)
$staff_status ?BINARY Null N/A N/A Staff status to limit to (null: Get from environment)
$member_id ?MEMBER Null N/A N/A Member to limit to (null: Get from environment)
$groups ?SHORT_TEXT Null N/A N/A Sorted permissive usergroup list to limit to (null: Get from environment)
$is_bot ?BINARY Null N/A N/A Bot status to limit to (null: Get from environment)
$timezone ?MINIID_TEXT Null N/A N/A Timezone to limit to (null: Get from environment)
$theme ?ID_TEXT Null N/A N/A The theme this is being cached for (null: Get from environment)
$lang ?LANGUAGE_NAME Null N/A N/A The language this is being cached for (null: Get from environment)