Function Hook_task_cns_topics_recache->run
Definitions
sources/hooks/systems/tasks/cns_topics_recache.php
- Run the task hook.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$topic_scope | ?AUTO_LINK | Null | N/A | N/A | The topic ID which all de-cacheing should take place (null: all topics) |
$recache_topics | boolean | True | N/A | N/A | Whether to re-cache topics |
$recache_poll_votes | boolean | True | N/A | N/A | Whether to re-cache poll votes |
$nullify_poll_voting_power | boolean | False | N/A | N/A | Whether to nullify the voting_power cache (recalculated individually when polls are viewed) |
Return
- A tuple of at least 2: Return mime-type, content (either Tempcode, or a string, or a filename and file-path pair to a temporary file), map of HTTP headers if transferring immediately, map of ini_set commands if transferring immediately (null: show standard success message)
- Type: ?array
- Set: N/A
- Range: N/A