Skip to content

Commit

Permalink
Merge branch '1.2.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
frnsys committed Sep 15, 2017
2 parents 07e8bce + 82e6663 commit 1222d51
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions includes/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function tni_core_get_unauthorized_posts() {
$posts = array_values( array_filter( $post_query, 'tni_is_subscription_only' ) );
}

set_transient( 'tni_unauthorized_posts', $posts, HOURS_IN_SECONDS * 12 );
set_transient( 'tni_unauthorized_posts', $posts, MINUTE_IN_SECONDS * 5);

}

Expand All @@ -166,4 +166,4 @@ function tni_core_purge_transients( $ID, $post ) {
delete_transient( 'tni_unauthorized_posts' );
}
}
//add_action( 'publish_post', 'tni_core_purge_transients' );
add_action( 'publish_post', 'tni_core_purge_transients' );
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: misfist
Tags: custom
Requires at least: 4.7
Tested up to: 4.8
Version: 1.2.9
Version: 1.2.10
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -22,6 +22,10 @@ This section describes how to install the plugin and get it working.

== Changelog ==

= 1.2.10 Sept 15, 2017 =
* Reduced unauthorized post transient cache time
* Enabled unauthorized post transient clearing on post publish

= 1.2.9 Aug 18, 2017 =
* Added function return array of unauthorized post IDs

Expand Down
2 changes: 1 addition & 1 deletion tni-core-functionality.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Text Domain: tni-core
* Domain Path: /languages
*
* Version: 1.2.9
* Version: 1.2.10
*
* @package Tni_Core_Functionality
*/
Expand Down

0 comments on commit 1222d51

Please sign in to comment.