lib/ShortPixel/SPLog.php
public function logFirst($key, $producer, $msg, $object = false) {
        if(!($this->acceptedProducers & $producer)) { return; }

        if(!in_array($key, $this->loggedAlready)) {
            $this->loggedAlready[] = $key;
            $this->log($producer, $msg, $object);
        }

    }
public function logFirst($key, $producer, $msg, $object = false) {
        if(!($this->acceptedProducers & $producer)) { return; }

        if(!in_array($key, $this->loggedAlready)) {
            $this->loggedAlready[] = $key;
            $this->log($producer, $msg, $object);
        }

    }
public function logFirst ( $ key , $ producer , $ msg , $ object = false ) { if ( ! ( $ this -> acceptedProducers & $ producer ) ) { return ; } if ( ! in_array ( $ key , $ this -> loggedAlready ) ) { $ this -> loggedAlready [ ] = $ key ; $ this -> log ( $ producer , $ msg , $ object ) ; } }
Log only the first call with that key
@param $key
@param $producer
@param $msg
@param $object
Log only the first call with that key