Exemple #1
0
 /**
  * Verfügbare Cache-Methoden
  *
  * @since  2.0.0
  * @change 2.1.3
  *
  * @param  array  $methods  Array mit verfügbaren Arten
  */
 private static function _method_select()
 {
     /* Defaults */
     $methods = array(self::METHOD_DB => esc_html__('Database', 'cachify'), self::METHOD_APC => 'APC', self::METHOD_HDD => esc_html__('Hard disk', 'cachify'), self::METHOD_MMC => 'Memcached');
     /* APC */
     if (!Cachify_APC::is_available()) {
         unset($methods[1]);
     }
     /* Memcached? */
     if (!Cachify_MEMCACHED::is_available()) {
         unset($methods[3]);
     }
     /* HDD */
     if (!Cachify_HDD::is_available()) {
         unset($methods[2]);
     }
     return $methods;
 }