Skip to content

Commit

Permalink
Clear template cache when plugin deactivated
Browse files Browse the repository at this point in the history
Resolves #1507
  • Loading branch information
jakejackson1 committed Mar 25, 2024
1 parent 84df191 commit 742ce45
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

= 6.9.0 =
* Feature: Add new conditional logic options to PDFs eg. Payment Status, Date Created, Starred (props: Gravity Wiz)
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();

Check warning on line 76 in src/Controller/Controller_Activation.php

View check run for this annotation

Codecov / codecov/patch

src/Controller/Controller_Activation.php#L75-L76

Added lines #L75 - L76 were not covered by tests
}
}

0 comments on commit 742ce45

Please sign in to comment.