Jetpack_Sync_Module_WP_Super_Cache

The WordPress Core Jetpack Sync Module WP Super Cache class.

Defined (1)

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

/sync/class.jetpack-sync-module-wp-super-cache.php  
  1. class Jetpack_Sync_Module_WP_Super_Cache extends Jetpack_Sync_Module { 
  2.  
  3. public function __construct() { 
  4. add_filter( 'jetpack_sync_constants_whitelist', array( $this, 'add_wp_super_cache_constants_whitelist' ), 10 ); 
  5. add_filter( 'jetpack_sync_callable_whitelist', array( $this, 'add_wp_super_cache_callable_whitelist' ), 10 ); 
  6.  
  7. static $wp_super_cache_constants = array( 
  8. 'WPLOCKDOWN',  
  9. 'WPSC_DISABLE_COMPRESSION',  
  10. 'WPSC_DISABLE_LOCKING',  
  11. 'WPSC_DISABLE_HTACCESS_UPDATE',  
  12. 'ADVANCEDCACHEPROBLEM',  
  13. ); 
  14.  
  15. static $wp_super_cache_callables = array( 
  16. 'wp_super_cache_globals' => array( 'Jetpack_Sync_Module_WP_Super_Cache', 'get_wp_super_cache_globals' ),  
  17. ); 
  18.  
  19. public function name() { 
  20. return 'wp-super-cache'; 
  21.  
  22. public static function get_wp_super_cache_globals() { 
  23. global $wp_cache_mod_rewrite; 
  24. global $cache_enabled; 
  25. global $super_cache_enabled; 
  26. global $ossdlcdn; 
  27. global $cache_rebuild_files; 
  28. global $wp_cache_mobile; 
  29. global $wp_super_cache_late_init; 
  30. global $wp_cache_anon_only; 
  31. global $wp_cache_not_logged_in; 
  32. global $wp_cache_clear_on_post_edit; 
  33. global $wp_cache_mobile_enabled; 
  34. global $wp_super_cache_debug; 
  35. global $cache_max_time; 
  36. global $wp_cache_refresh_single_only; 
  37. global $wp_cache_mfunc_enabled; 
  38. global $wp_supercache_304; 
  39. global $wp_cache_no_cache_for_get; 
  40. global $wp_cache_mutex_disabled; 
  41. global $cache_jetpack; 
  42. global $cache_domain_mapping; 
  43.  
  44. return array( 
  45. 'wp_cache_mod_rewrite' => $wp_cache_mod_rewrite,  
  46. 'cache_enabled' => $cache_enabled,  
  47. 'super_cache_enabled' => $super_cache_enabled,  
  48. 'ossdlcdn' => $ossdlcdn,  
  49. 'cache_rebuild_files' => $cache_rebuild_files,  
  50. 'wp_cache_mobile' => $wp_cache_mobile,  
  51. 'wp_super_cache_late_init' => $wp_super_cache_late_init,  
  52. 'wp_cache_anon_only' => $wp_cache_anon_only,  
  53. 'wp_cache_not_logged_in' => $wp_cache_not_logged_in,  
  54. 'wp_cache_clear_on_post_edit' => $wp_cache_clear_on_post_edit,  
  55. 'wp_cache_mobile_enabled' => $wp_cache_mobile_enabled,  
  56. 'wp_super_cache_debug' => $wp_super_cache_debug,  
  57. 'cache_max_time' => $cache_max_time,  
  58. 'wp_cache_refresh_single_only' => $wp_cache_refresh_single_only,  
  59. 'wp_cache_mfunc_enabled' => $wp_cache_mfunc_enabled,  
  60. 'wp_supercache_304' => $wp_supercache_304,  
  61. 'wp_cache_no_cache_for_get' => $wp_cache_no_cache_for_get,  
  62. 'wp_cache_mutex_disabled' => $wp_cache_mutex_disabled,  
  63. 'cache_jetpack' => $cache_jetpack,  
  64. 'cache_domain_mapping' => $cache_domain_mapping,  
  65. ); 
  66.  
  67. public function add_wp_super_cache_constants_whitelist( $list ) { 
  68. return array_merge( $list, self::$wp_super_cache_constants ); 
  69.  
  70. public function add_wp_super_cache_callable_whitelist( $list ) { 
  71. return array_merge( $list, self::$wp_super_cache_callables );