Advertisement
krasimirvelichkov

Untitled

Jul 10th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #BEGIN_EZOIC_INTEGRATION_PHP_CACHE_HANDLER
  2. $ezoic_factory_file = WP_CONTENT_DIR . '/plugins' . '/ezoic-integration/includes/class-ezoic-integration-factory.php';
  3. if ( false == strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) && file_exists( $ezoic_factory_file ) ) {
  4. require_once($ezoic_factory_file);
  5. $ezoic_factory = new Ezoic_Namespace\Ezoic_Integration_Factory();
  6. $ezoic_integrator = $ezoic_factory->NewEzoicIntegrator(Ezoic_Namespace\Ezoic_Cache_Type::PHP_CACHE);
  7. register_shutdown_function(array($ezoic_integrator, "ApplyEzoicMiddleware"));
  8. }
  9. #END_EZOIC_INTEGRATION_PHP_CACHE_HANDLER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement