Description
Determine if parsing is necessaryParsing is necessary in the following conditions
- It's not been parsed before
- The MD5 hash is different
Usage
$bool = oiksc_parsed_source::is_parsing_necessary( $source );Parameters
- $source
- ( array ) required – latest source
Returns
bool true when parsing is necessarySource
File name: oik-shortcodes/classes/class-oiksc-parsed-source.phpLines:
1 to 7 of 7
function is_parsing_necessary( $source ) { $this->latest_md5_hash = $this->query_md5_hash( $source ); $stored = $this->get_md5_hash(); $parsing_is_necessary = ( $stored != $this->latest_md5_hash ); //echo "{$this->latest_md5_hash} - $stored => $parsing_is_necessary" . PHP_EOL; return( $parsing_is_necessary ); }View on GitHub
Called by
Invoked by
Calls
1 to 2 of 2
