Jump to content

Alex K.

Members
  • Posts

    1,922
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    Alex K. reacted to teraßyte in ips_CacheRegistry -> getCache/_loadCaches   
    I was hoping that you implement this small change for 3.0.0 :(


    Actually I have already rewritten the function on my own just for fun lol


    static public function getCache( $keys ) { if ( is_string( $keys ) ) { if ( ! in_array( $keys, array_keys( self::$data_store ) ) ) { self::_loadCaches( array( $keys ) ); } return self::$data_store[ $keys ]; } elseif ( is_array( $keys ) && count( $keys ) ) { $toLoad = array(); foreach( $keys as $key ) { if ( ! in_array( $key, array_keys( self::$data_store ) ) ) { $toLoad[] = $key; } } self::_loadCaches( $toLoad ); return TRUE; } return FALSE; }
×
×
  • Create New...