$is_plugin_installed
$is_plugin_installed : boolean
Public variable to state if supported plugin is installed on the child site.
Class MainWP_Child_Cache_Purge
This class handles purging Child Site cache when requested.
sync_others_data(array $information, array $data = array()) : array
Method sync_others_data()
Sync data to & from the MainWP Dashboard.
array | $information | Array containing the data to be sent to the Dashboard. |
array | $data | Array containing the data sent from the Dashboard; to be saved to the Child Site. |
$information Array containing the data to be sent to the Dashboard.
check_cache_solution() : void
Check which supported plugin is installed, Set wp_option 'mainwp_cache_control_cache_solution' to active plugin, and set public variable 'is_plugin_installed' to TRUE.
If a supported plugin is not installed check to see if CloudFlair solution is enabled.
nitropack_auto_purge_cache() : array
Purge Nitropack cache.
Nitropack_purge($url = NULL, $tag = NULL, $reason = NULL);
In case you want to do a full purge, you must leave the values for URL and Tag empty. In case you want to create a targeted purge you can replace them with the URL or tag of the page.
Purge results array.