diff --git a/README.md b/README.md index 081dcbc2..1c710a93 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Nginx Helper # [![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) -**Contributors:** rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishu.agola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase +**Contributors:** rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase, sid177, souptik, arafatkn, subscriptiongroup **Tags:** nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks @@ -9,7 +9,7 @@ **Tested up to:** 6.1 -**Stable tag:** 2.2.2 +**Stable tag:** 2.2.3 **License:** GPLv2 or later (of-course) @@ -139,6 +139,16 @@ Please post your problem in [our free support forum](https://github.com/rtCamp/n ## Changelog ## +### 2.2.3 ### + +* Add the URL being purged as parameter in `rt_nginx_helper_purge_cached_file` hook. [#271](https://github.com/rtCamp/nginx-helper/pull/271) - by [Arafat Islam](https://github.com/arafatkn) +* Fix performance issue when saving nav menus. [#112](https://github.com/rtCamp/nginx-helper/issues/112), [#272](https://github.com/rtCamp/nginx-helper/pull/272/) - by [Arafat Islam](https://github.com/arafatkn) +* Fix purging date archives for custom post types. [#40](https://github.com/rtCamp/nginx-helper/issues/40), [#268](https://github.com/rtCamp/nginx-helper/pull/268) - by [Arafat Islam](https://github.com/arafatkn) +* Fix pages and CPT URLs not being purged on moving to trash. [#191](https://github.com/rtCamp/nginx-helper/issues/191), [#267](https://github.com/rtCamp/nginx-helper/pull/267) - by [Arafat Islam](https://github.com/arafatkn) +* Fix notice - Undefined index: path [#190](https://github.com/rtCamp/nginx-helper/issues/190), [#251](https://github.com/rtCamp/nginx-helper/issues/251), [#262](https://github.com/rtCamp/nginx-helper/pull/262) - by [George Lagonikas](https://github.com/glagonikas) +* PHP 8.1 compatibility [#291](https://github.com/rtCamp/nginx-helper/issues/291), [#302](https://github.com/rtCamp/nginx-helper/pull/302) - by [Siddharth Tikekar](https://github.com/SID177) +* Tested with WordPress 6.1 [#285](https://github.com/rtCamp/nginx-helper/pull/285) + ### 2.2.2 ### * Add action `rt_nginx_helper_after_purge_all` to fire after the entire cache has been purged whatever caching type is used. [#232](https://github.com/rtCamp/nginx-helper/pull/232) - by [Julien-prrs](https://github.com/Julien-prrs) @@ -483,9 +493,9 @@ Fix url escaping [#82](https://github.com/rtCamp/nginx-helper/pull/82) - by ## Upgrade Notice ## -### 2.2.2 ### +### 2.2.3 ### -Nginx Helper 2.2.2, Add new "rt_nginx_helper_after_purge_all" action and fixes issues where settings not saved because the button's value localized (for any language) and "Custom Purge URL" option displays previous value. +Nginx Helper 2.2.3, Fix performance issue when saving nav menus, purging date archives for CPTs, purge page and post URLs when the post is trashed and passes the URL being purged in "rt_nginx_helper_purge_cached_file" hook as parameter. ## Does this interest you? ## diff --git a/includes/class-nginx-helper.php b/includes/class-nginx-helper.php index 8637d795..399dc5d0 100644 --- a/includes/class-nginx-helper.php +++ b/includes/class-nginx-helper.php @@ -77,7 +77,7 @@ class Nginx_Helper { public function __construct() { $this->plugin_name = 'nginx-helper'; - $this->version = '2.2.2'; + $this->version = '2.2.3'; $this->minimum_wp = '3.0'; if ( ! $this->required_wp_version() ) { diff --git a/languages/nginx-helper.mo b/languages/nginx-helper.mo index c59e0756..4ed03a46 100644 Binary files a/languages/nginx-helper.mo and b/languages/nginx-helper.mo differ diff --git a/languages/nginx-helper.po b/languages/nginx-helper.po index 719b0459..fc4b01ef 100644 --- a/languages/nginx-helper.po +++ b/languages/nginx-helper.po @@ -1,17 +1,17 @@ -# Copyright (C) 2020 rtCamp +# Copyright (C) 2023 rtCamp # This file is distributed under the same license as the Nginx Helper plugin. msgid "" msgstr "" -"Project-Id-Version: Nginx Helper 2.2.2\n" +"Project-Id-Version: Nginx Helper 2.2.3\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nginx-helper\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2020-04-20T18:52:09+00:00\n" +"POT-Creation-Date: 2023-05-10T09:58:20+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.2.0\n" +"X-Generator: WP-CLI 2.7.1\n" "X-Domain: nginx-helper\n" #. Plugin Name of the plugin @@ -38,15 +38,6 @@ msgstr "" msgid "https://rtcamp.com" msgstr "" -#: includes/class-nginx-helper-activator.php:49 -msgid "Sorry, you need to be an administrator to use Nginx Helper" -msgstr "" - -#. translators: %s is Minimum WP version. -#: includes/class-nginx-helper.php:311 -msgid "Sorry, Nginx Helper requires WordPress %s or higher" -msgstr "" - #: admin/class-nginx-helper-admin.php:88 msgid "General" msgstr "" @@ -79,165 +70,165 @@ msgstr "" msgid "Posted " msgstr "" -#: admin/class-nginx-helper-admin.php:740 +#: admin/class-nginx-helper-admin.php:746 msgid "Purge initiated" msgstr "" -#: admin/class-purger.php:686 +#: admin/class-purger.php:691 msgid "Purging homepage (WPML) " msgstr "" -#: admin/class-purger.php:691 +#: admin/class-purger.php:696 msgid "Purging homepage " msgstr "" -#: admin/class-purger.php:710 +#: admin/class-purger.php:715 msgid "Purging personal urls" msgstr "" -#: admin/class-purger.php:718 +#: admin/class-purger.php:723 msgid "No personal urls available" msgstr "" -#: admin/class-purger.php:734 +#: admin/class-purger.php:739 msgid "Purging category archives" msgstr "" #. translators: %d: Category ID. -#: admin/class-purger.php:743 +#: admin/class-purger.php:748 msgid "Purging category '%d'" msgstr "" -#: admin/class-purger.php:761 +#: admin/class-purger.php:766 msgid "Purging tags archives" msgstr "" -#: admin/class-purger.php:769 -#: admin/class-purger.php:869 +#: admin/class-purger.php:774 +#: admin/class-purger.php:874 msgid "Purging tag '%1$s' ( id %2$d )" msgstr "" -#: admin/class-purger.php:788 +#: admin/class-purger.php:793 msgid "Purging post custom taxonomies related" msgstr "" #. translators: %s: Post taxonomy name. #. translators: %s: Taxonomy name. -#: admin/class-purger.php:802 -#: admin/class-purger.php:902 +#: admin/class-purger.php:807 +#: admin/class-purger.php:907 msgid "Purging custom taxonomy '%s'" msgstr "" #. translators: %s: Post taxonomy name. #. translators: %s: Taxonomy name. -#: admin/class-purger.php:816 -#: admin/class-purger.php:918 +#: admin/class-purger.php:821 +#: admin/class-purger.php:923 msgid "Your built-in taxonomy '%s' has param '_builtin' set to false." msgstr "" -#: admin/class-purger.php:820 -#: admin/class-purger.php:922 +#: admin/class-purger.php:825 +#: admin/class-purger.php:927 msgid "No custom taxonomies" msgstr "" -#: admin/class-purger.php:833 +#: admin/class-purger.php:838 msgid "Purging all categories" msgstr "" -#: admin/class-purger.php:841 +#: admin/class-purger.php:846 msgid "Purging category '%1$s' ( id %2$d )" msgstr "" -#: admin/class-purger.php:847 +#: admin/class-purger.php:852 msgid "No categories archives" msgstr "" -#: admin/class-purger.php:861 +#: admin/class-purger.php:866 msgid "Purging all tags" msgstr "" -#: admin/class-purger.php:874 +#: admin/class-purger.php:879 msgid "No tags archives" msgstr "" -#: admin/class-purger.php:888 +#: admin/class-purger.php:893 msgid "Purging all custom taxonomies" msgstr "" -#: admin/class-purger.php:949 +#: admin/class-purger.php:954 msgid "Purging all posts, pages and custom post types." msgstr "" -#: admin/class-purger.php:964 +#: admin/class-purger.php:969 msgid "Purging post id '%1$d' ( post type '%2$s' )" msgstr "" -#: admin/class-purger.php:969 +#: admin/class-purger.php:974 msgid "No posts" msgstr "" -#: admin/class-purger.php:983 +#: admin/class-purger.php:988 msgid "Purging all date-based archives." msgstr "" -#: admin/class-purger.php:1000 +#: admin/class-purger.php:1005 msgid "Purging all daily archives." msgstr "" -#: admin/class-purger.php:1023 +#: admin/class-purger.php:1028 msgid "Purging daily archive '%1$s/%2$s/%3$s'" msgstr "" -#: admin/class-purger.php:1034 +#: admin/class-purger.php:1039 msgid "No daily archives" msgstr "" -#: admin/class-purger.php:1046 +#: admin/class-purger.php:1051 msgid "Purging all monthly archives." msgstr "" -#: admin/class-purger.php:1074 +#: admin/class-purger.php:1079 msgid "Purging monthly archive '%1$s/%2$s'" msgstr "" -#: admin/class-purger.php:1079 +#: admin/class-purger.php:1084 msgid "No monthly archives" msgstr "" -#: admin/class-purger.php:1091 +#: admin/class-purger.php:1096 msgid "Purging all yearly archives." msgstr "" #. translators: %s: Year to purge cache. -#: admin/class-purger.php:1119 +#: admin/class-purger.php:1124 msgid "Purging yearly archive '%s'" msgstr "" -#: admin/class-purger.php:1124 +#: admin/class-purger.php:1129 msgid "No yearly archives" msgstr "" -#: admin/class-purger.php:1136 +#: admin/class-purger.php:1141 msgid "Let's purge everything!" msgstr "" -#: admin/class-purger.php:1142 +#: admin/class-purger.php:1147 msgid "Everything purged!" msgstr "" -#: admin/class-purger.php:1165 +#: admin/class-purger.php:1170 msgid "Term taxonomy edited or deleted" msgstr "" -#: admin/class-purger.php:1172 +#: admin/class-purger.php:1177 msgid "Term taxonomy '%1$s' edited, (tt_id '%2$d', term_id '%3$d', taxonomy '%4$s')" msgstr "" -#: admin/class-purger.php:1176 +#: admin/class-purger.php:1181 msgid "A term taxonomy has been deleted from taxonomy '%1$s', (tt_id '%2$d', term_id '%3$d')" msgstr "" -#: admin/class-purger.php:1204 +#: admin/class-purger.php:1209 msgid "Widget saved, moved or removed in a sidebar" msgstr "" @@ -245,95 +236,6 @@ msgstr "" msgid "Nginx Settings" msgstr "" -#: admin/partials/nginx-helper-support-options.php:18 -msgid "Support Forums" -msgstr "" - -#: admin/partials/nginx-helper-support-options.php:24 -msgid "Free Support" -msgstr "" - -#: admin/partials/nginx-helper-support-options.php:27 -msgid "Free Support Forum" -msgstr "" - -#: admin/partials/nginx-helper-support-options.php:28 -#: admin/partials/nginx-helper-support-options.php:38 -msgid "Link to forum" -msgstr "" - -#: admin/partials/nginx-helper-support-options.php:34 -msgid "Premium Support" -msgstr "" - -#: admin/partials/nginx-helper-support-options.php:37 -msgid "Premium Support Forum" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:26 -msgid "Purge Entire Cache" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:31 -msgid "Need Help?" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:38 -msgid "Please use our" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:40 -msgid "free support forum" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:50 -msgid "Getting Social is Good" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:54 -msgid "Become a fan on Facebook" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:55 -msgid "Follow us on Twitter" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:61 -msgid "Useful Links" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:66 -msgid "WordPress-Nginx Solutions" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:69 -msgid "WordPress Theme Devleopment" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:72 -msgid "WordPress Plugin Development" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:75 -msgid "WordPress Consultancy" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:78 -msgid "easyengine (ee)" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:85 -msgid "Click to toggle" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:86 -msgid "Latest News" -msgstr "" - -#: admin/partials/nginx-helper-sidebar-display.php:87 -msgid "Loading..." -msgstr "" - #: admin/partials/nginx-helper-general-options.php:56 msgid "Log file size must be a number." msgstr "" @@ -613,6 +515,104 @@ msgstr "" msgid "Save All Changes" msgstr "" +#: admin/partials/nginx-helper-sidebar-display.php:26 +msgid "Purge Entire Cache" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:31 +msgid "Need Help?" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:38 +msgid "Please use our" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:40 +msgid "free support forum" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:50 +msgid "Getting Social is Good" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:54 +msgid "Become a fan on Facebook" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:55 +msgid "Follow us on Twitter" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:61 +msgid "Useful Links" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:66 +msgid "WordPress-Nginx Solutions" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:69 +msgid "WordPress Theme Devleopment" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:72 +msgid "WordPress Plugin Development" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:75 +msgid "WordPress Consultancy" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:78 +msgid "easyengine (ee)" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:85 +msgid "Click to toggle" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:86 +msgid "Latest News" +msgstr "" + +#: admin/partials/nginx-helper-sidebar-display.php:87 +msgid "Loading..." +msgstr "" + +#: admin/partials/nginx-helper-support-options.php:18 +msgid "Support Forums" +msgstr "" + +#: admin/partials/nginx-helper-support-options.php:24 +msgid "Free Support" +msgstr "" + +#: admin/partials/nginx-helper-support-options.php:27 +msgid "Free Support Forum" +msgstr "" + +#: admin/partials/nginx-helper-support-options.php:28 +#: admin/partials/nginx-helper-support-options.php:38 +msgid "Link to forum" +msgstr "" + +#: admin/partials/nginx-helper-support-options.php:34 +msgid "Premium Support" +msgstr "" + +#: admin/partials/nginx-helper-support-options.php:37 +msgid "Premium Support Forum" +msgstr "" + #: class-nginx-helper-wp-cli-command.php:40 msgid "Purged Everything!" msgstr "" + +#: includes/class-nginx-helper-activator.php:49 +msgid "Sorry, you need to be an administrator to use Nginx Helper" +msgstr "" + +#. translators: %s is Minimum WP version. +#: includes/class-nginx-helper.php:311 +msgid "Sorry, Nginx Helper requires WordPress %s or higher" +msgstr "" diff --git a/nginx-helper.php b/nginx-helper.php index d0ba58fc..92b8fc5e 100644 --- a/nginx-helper.php +++ b/nginx-helper.php @@ -3,7 +3,7 @@ * Plugin Name: Nginx Helper * Plugin URI: https://rtcamp.com/nginx-helper/ * Description: Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does few more things. - * Version: 2.2.2 + * Version: 2.2.3 * Author: rtCamp * Author URI: https://rtcamp.com * Text Domain: nginx-helper diff --git a/readme.txt b/readme.txt index 8da35fdb..0000ecbf 100644 --- a/readme.txt +++ b/readme.txt @@ -1,12 +1,12 @@ === Nginx Helper === -Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, ,vaishu.agola27 rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase +Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase, sid177, souptik, arafatkn, subscriptiongroup Donate Link: http://rt.cx/eedonate/ Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks License: GPLv2 or later (of-course) License URI: http://www.gnu.org/licenses/gpl-2.0.html Requires at least: 3.0 Tested up to: 6.1 -Stable tag: 2.2.2 +Stable tag: 2.2.3 Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things. @@ -127,6 +127,15 @@ Please post your problem in [our free support forum](https://github.com/rtCamp/n == Changelog == += 2.2.3 = +* Add the URL being purged as parameter in `rt_nginx_helper_purge_cached_file` hook. [#271](https://github.com/rtCamp/nginx-helper/pull/271) - by [Arafat Islam](https://github.com/arafatkn) +* Fix performance issue when saving nav menus. [#112](https://github.com/rtCamp/nginx-helper/issues/112), [#272](https://github.com/rtCamp/nginx-helper/pull/272/) - by [Arafat Islam](https://github.com/arafatkn) +* Fix purging date archives for custom post types. [#40](https://github.com/rtCamp/nginx-helper/issues/40), [#268](https://github.com/rtCamp/nginx-helper/pull/268) - by [Arafat Islam](https://github.com/arafatkn) +* Fix pages and CPT URLs not being purged on moving to trash. [#191](https://github.com/rtCamp/nginx-helper/issues/191), [#267](https://github.com/rtCamp/nginx-helper/pull/267) - by [Arafat Islam](https://github.com/arafatkn) +* Fix notice - Undefined index: path [#190](https://github.com/rtCamp/nginx-helper/issues/190), [#251](https://github.com/rtCamp/nginx-helper/issues/251), [#262](https://github.com/rtCamp/nginx-helper/pull/262) - by [George Lagonikas](https://github.com/glagonikas) +* PHP 8.1 compatibility [#291](https://github.com/rtCamp/nginx-helper/issues/291), [#302](https://github.com/rtCamp/nginx-helper/pull/302) - by [Siddharth Tikekar](https://github.com/SID177) +* Tested with WordPress 6.1 [#285](https://github.com/rtCamp/nginx-helper/pull/285) + = 2.2.2 = * Add action `rt_nginx_helper_after_purge_all` to fire after the entire cache has been purged whatever caching type is used. [#232](https://github.com/rtCamp/nginx-helper/pull/232) - by [Julien-prrs](https://github.com/Julien-prrs) * Fix issue where settings not saved because the button's value localized (for any language). [#236](https://github.com/rtCamp/nginx-helper/pull/236) - by [umeshnevase](https://github.com/umeshnevase) @@ -412,5 +421,5 @@ Fix url escaping [#82](https://github.com/rtCamp/nginx-helper/pull/82) - by == Upgrade Notice == -= 2.2.2 = -Nginx Helper 2.2.2, Add new "rt_nginx_helper_after_purge_all" action and fixes issues where settings not saved because the button's value localized (for any language) and "Custom Purge URL" option displays previous value. += 2.2.3 = +Nginx Helper 2.2.3, Fix performance issue when saving nav menus, purging date archives for CPTs, purge page and post URLs when the post is trashed and passes the URL being purged in "rt_nginx_helper_purge_cached_file" hook as parameter.