Skip to content

Commit

Permalink
Merge pull request #271 from rtCamp/fix/issue-242
Browse files Browse the repository at this point in the history
Added URL to be purged as parameter for rt_nginx_helper_purge_cached_file hook
  • Loading branch information
chandrapatel authored Mar 31, 2022
2 parents cc9dbdf + d5d77eb commit fba9ac1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/class-purger.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,12 @@ protected function delete_cache_file_for( $url ) {
* Filters the cached file name.
*
* @since 2.1.0
* @since 2.2.3 Purge URL argument `$url` were added.
*
* @param string $cached_file Cached file name.
* @param string $url URL to be purged.
*/
$cached_file = apply_filters( 'rt_nginx_helper_purge_cached_file', $cached_file );
$cached_file = apply_filters( 'rt_nginx_helper_purge_cached_file', $cached_file, $url );

// Verify cached file exists.
if ( ! file_exists( $cached_file ) ) {
Expand Down

0 comments on commit fba9ac1

Please sign in to comment.