Skip to content

Commit

Permalink
1.1.1 (#8)
Browse files Browse the repository at this point in the history
* rest api method fix
  • Loading branch information
Ethan Kennedy authored Oct 17, 2017
1 parent 09ca62e commit e3ba707
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/wpeac-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function global_last_modified_compare( $last_modified ) {
* @since 1.1
* @return header cache control header
*/
function send_header_cache_control_api() {
public static function send_header_cache_control_api() {
$cache_length = self::get( 'rest_api_cache_expires_value' );
header( "Cache-Control: max-age=$cache_length, must-revalidate" );
}
Expand Down
4 changes: 3 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: ethankennedy, stevenkword
Tags: wpengine, cache, headers, last-modified
Requires at least: 3.5
Tested up to: 4.8
Stable tag: 1.1.0
Stable tag: 1.1.1

This plugin is a tool that leverages some specific WP Engine tools, as well as general web options for increasing the cacheability of a WordPress site.

Expand All @@ -30,6 +30,8 @@ This plugin is a tool that leverages some specific WP Engine tools, as well as g

== Changelog ==

1.1.1 - Updated Rest API cache header method

1.1.0 - Added cache options for Rest API Endpoints

1.0.1 - Removed Known Issues Portion of Readme, added other information
Expand Down
2 changes: 1 addition & 1 deletion wpe-advanced-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WP Engine Advanced Cache Options
* Plugin URI: https://github.com/EthanKennedy/wpe-advanced-cache
* Description: This plugin works to increase cache time across the board, and gives a smarter way to purge the cache
* Version: 1.1.0
* Version: 1.1.1
* Author: Ethan Kennedy, Steven Word
* Author URI: http://ethankennedy.me
* License: GPL2.
Expand Down

0 comments on commit e3ba707

Please sign in to comment.