Exemplo n.º 1
0
 /**
  * disable()
  *
  * @return void
  **/
 static function enable()
 {
     if (!class_exists('sem_cache_admin')) {
         include dirname(__FILE__) . '/sem-cache-admin.php';
     }
     sem_cache_admin::enable_caching();
     cache_fs::flush('/');
     self::flush_objects();
 }
Exemplo n.º 2
0
 /**
  * Access this plugin’s working instance
  *
  * @wp-hook plugins_loaded
  * @return  object of this class
  */
 public static function get_instance()
 {
     NULL === self::$instance and self::$instance = new self();
     return self::$instance;
 }