w3tc_register_fragment_group

Register a fragment group and connected actions for current blog.

Description

w3tc_register_fragment_group( (string) $group, (array) $actions, (integer) $expiration ); 

Parameters (3)

0. $group (string)
The group.
1. $actions (array)
On which actions group should be flushed
2. $expiration (integer)
The expiration.

Usage

  1. if ( !function_exists( 'w3tc_register_fragment_group' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/Extension_FragmentCache_Api.php'; 
  3.  
  4. // The group. 
  5. $group = ''; 
  6.  
  7. // on which actions group should be flushed 
  8. $actions = array(); 
  9.  
  10. // The expiration. 
  11. $expiration = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = w3tc_register_fragment_group($group, $actions, $expiration); 
  15.  

Defined (1)

The function is defined in the following location(s).

/Extension_FragmentCache_Api.php