Skip to content

Commit

Permalink
Merge pull request #1512 from GravityPDF/flush-cache-on-deactivate
Browse files Browse the repository at this point in the history
Clear template cache when plugin deactivated
  • Loading branch information
jakejackson1 authored Mar 26, 2024
2 parents 3df0d31 + 1f9d7f0 commit 16173d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ Gravity PDF can be run on most modern shared web hosting without any issues. It
= 6.9.1 =
* Security: Disable the Signed URL feature in the [gravitypdf] shortcode when a URL parameter provides the entry ID (e.g. Page Confirmations)
* Bug: Gracefully handle invalid conditional logic rules when adding date entry meta support
* Bug: Clear template cache when plugin deactivated
* Bug: Display field for entry metadata PDF conditional rule when there are no form fields compatible with conditional logic

= 6.9.0 =
Expand Down
4 changes: 4 additions & 0 deletions src/Controller/Controller_Activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,9 @@ public static function deactivation() {

/* Remove our scheduled tasks */
wp_clear_scheduled_hook( 'gfpdf_cleanup_tmp_dir' );

/* Flush caches */
$templates = \GPDFAPI::get_templates_class();
$templates->flush_template_transient_cache();
}
}

0 comments on commit 16173d7

Please sign in to comment.