WP Manifestindependent plugin directory
manifest / performance / simple_wp_http_cache

Simple WP HTTP Cache

Simple HTTP WordPress Cache for WordPress

by Edwin Cromley · github.com/be-webdesign/simple_wp_http_cache · website

3stars
273composer installs
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/be-webdesign/simple_wp_http_cache/archive/refs/heads/master.zip

Also on Packagist as edwincromleydev/simple-wp-http-cache:

composer require edwincromleydev/simple-wp-http-cache

From the readme

SimpleWPHTTPCache Simple HTTP WordPress Cache for WordPress Requirements PHP 7.0+ WordPress 4.9.8+ Installation Basic Installation This is a WordPress plugin, and can be installed following these instructions. via Composer Composer is a PHP dependency manager. You will need to install composer first, before using it. To install this plugin as a dependency run the following in your WordPress install root folder with a composer.json file present: Make sure your composer.json file uses installer paths to move the dependency into your plugins folder. Here is a the config needed for a default WordPress install: This will install the plugin inside of wp-content/plugins with the matching plugin name. This plugin is not available on WPPackagist. Usage Fundamentals Simple WP HTTP Cache builds on top of WordPress's internal WPHTTP API. Any request using WordPress's WP HTTP, can be passed an additional argument to control the functionality of the Simple HTTP caching and logging. Below is an example of how to cache a network request: This will store the response value by default for 5 minutes, preventing any repeating calls in that time frame from reaching out over the networ

Read the full README on GitHub →