Skip to content

Commit

Permalink
Add filter for model cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
Miika Arponen committed Jun 5, 2017
1 parent 1f1696b commit ee7ab3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/model.php
Expand Up @@ -692,6 +692,8 @@ private function generate_cache_key() {
$seed .= serialize( $arg );
}

$seed = apply_filters( 'dustpress/cache/seed', $seed );

return sha1( $seed );
}

Expand Down

0 comments on commit ee7ab3c

Please sign in to comment.