Skip to content

Commit

Permalink
remove evaluation of POST value on how to flush the cache after publish
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode authored and chesio committed May 27, 2020
1 parent 944c926 commit dcac6b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).

## [2.3.1]
* Fix: clean up unused parameter evaluation after publishing a post to prevent PHP notice

## [2.3.0]
* New: WP-CLI integration, see #165, props derweili
* New: `cachify_flush_cache_hooks` filter added to modify all hooks that flush the cache
Expand Down
10 changes: 0 additions & 10 deletions inc/cachify.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -912,16 +912,6 @@ public static function publish_post_types( $post_id, $post ) {
return;
}

/* Save as var */
$remove_post_type_cache = (int) $_POST['_cachify_remove_post_type_cache_on_update'];

/* Save as user meta */
update_user_meta(
get_current_user_id(),
'_cachify_remove_post_type_cache_on_update',
$remove_post_type_cache
);

/* Remove cache OR flush */
if ( 1 !== self::$options['reset_on_post'] ) {
self::remove_page_cache_by_post_id( $post_id );
Expand Down

0 comments on commit dcac6b7

Please sign in to comment.