All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Bypass cache setting added.
- Bypass cache when authorization headers present.
- Added additional check for object on
site_transient_update_pluginscheck.
- Move the Admin class into an action hook on
after_setup_themeto avoid conditional notices.
- Removed the
helper.phpfile. - Updated all the functions that were using the helper functions.
- Update thefrosty/wp-utilities to 1.2.2.
- Fix save settings on admin page, (POST array key was incorrect).
- Add confirm to clear all cache button on settings page.
- Only load the Admin class in the admin.
- Added a new capability (
manage_wp_rest_api_cache) to view the settings page and/or admin bar which is (mapped todelete_users). - The
Dwnload\WpRestApi\RestApi\RestDispatch::FILTER_CACHE_EXPIREfilters expire sanitize function was changed fromabsinttoinvalfunction to allow for zero and negative numbers. - Pass
is_admin_bar_showing()into FILTER_SHOW_ADMIN_BAR_MENU.
- Added
wpCacheReplace()to theCacheApiTrait.
- Added permission check (
delete_users) before adding admin bar node. - Change permission check on settings page from
manage_optionstodelete_users. - Removed nonce check after successful cache flush for admin notice.
- PHP 7.2 to the Travis build.
- When endpoints have multiple posts, the request bubbles up and appends the results which leads to a body size X's the requests. In other words, it's bad. This adds static property cache to break out of the possible loop.
- Fixes PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback , cannot access protected method Dwnload\WpRestApi\WpAdmin\Admin::renderPage().
- Added new method
RestDispatch::queryParamContextIsEdit - Added new method
RestDispatch::isUserAuthenticated.
RestDispatch::isUserAuthenticateduses a new filterRestDispatch::FILTER_CACHE_VALIDATE_AUTHto re-check requests containing?context=editto avoid race conditions where a non-auth request returns results from cache.
- Version bump for packagist.
- The admin settings page now works.
- wp_cache_set expire from settings is used (if available).
- Be sure to clean the URL queries after calls to avoid caching delete requests.
- Make sure the cache flush button in the settings is invoked to show the URL.
RestDispatch::preDispatchshould set the $request_uri fromCacheApiTrait::getRequestUriand not useWP_REST_Request::get_routeto avoid query parameters getting stripped out of the cache request.CacheApiTrait::getRequestUrito sanitize the REQUEST_URI
- Bumped thefrosty/wp-utilities to version 1.1.3
- Bumped thefrosty/wp-utilities to version 1.1.2
which fixes
addOnHooknot executing when omitting a priority parameter less than 10.
addOnHookexpects a string value, not an object.
- Bumped thefrosty/wp-utilities to version 1.1.
- Updated the plugin to use the new PluginFactory.
- Update conditional checks on
*_update_pluginsfilters.
- Global functions outside of namespace are now prefixed with a backslash.
- Update README with new GitHub location URL.
- Forked thefrosty/wp-rest-api-cache which is a fork of airesvsg/wp-rest-api-cache.
- This CHANGELOG file.