*/
function clearFiles( $remove ) {
wfDebug( "FileCache clearing data for ".count( $remove )." files\n" );
- $this->cache = array_diff_keys( $this->cache, $remove );
- $this->notFound = array_diff_keys( $this->notFound, $remove );
+ $this->cache = array_diff_key( $this->cache, $remove );
+ $this->notFound = array_diff_key( $this->notFound, $remove );
}
/**
*/
function markNotFound( $dbkeys ) {
wfDebug( "FileCache marking ".count( $dbkeys )." files as not found\n" );
- $this->notFound += array_fill_keys( $dbkeys, true );
+ $this->notFound += array_fill_key( $dbkeys, true );
}