Skip to content

Commit fba9ac1

Browse files
authored
Merge pull request #271 from rtCamp/fix/issue-242
Added URL to be purged as parameter for rt_nginx_helper_purge_cached_file hook
2 parents cc9dbdf + d5d77eb commit fba9ac1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

admin/class-purger.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,12 @@ protected function delete_cache_file_for( $url ) {
403403
* Filters the cached file name.
404404
*
405405
* @since 2.1.0
406+
* @since 2.2.3 Purge URL argument `$url` were added.
406407
*
407408
* @param string $cached_file Cached file name.
409+
* @param string $url URL to be purged.
408410
*/
409-
$cached_file = apply_filters( 'rt_nginx_helper_purge_cached_file', $cached_file );
411+
$cached_file = apply_filters( 'rt_nginx_helper_purge_cached_file', $cached_file, $url );
410412

411413
// Verify cached file exists.
412414
if ( ! file_exists( $cached_file ) ) {

0 commit comments

Comments
 (0)