Title: Feature request: loading settings from wp-config
Last modified: December 5, 2024

---

# Feature request: loading settings from wp-config

 *  Resolved [lesandles](https://wordpress.org/support/users/lesandles/)
 * (@lesandles)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/feature-request-loading-settings-from-wp-config/)
 * Dear plugin team, first of all, a million thanks for this terrific plugin! We’ve
   only seen positive results whenever we deploy it.
 * Would you consider adding the option to define certain plugin settings in the
   wp-config? This simplifies deploying the plugin programmatically and enables 
   settings to be locked to anyone without file editing rights.
 * I did some grepping in the latest plugin release and from what I can tell, there’s
   no place where global constants are read, but I may have missed something.
 * If you consider giving this feature a go, we could provide a MR.
 * All the best and thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Richard Korthuis](https://wordpress.org/support/users/rockfire/)
 * (@rockfire)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/feature-request-loading-settings-from-wp-config/#post-18206437)
 * Hi [@lesandles](https://wordpress.org/support/users/lesandles/)
 * Thank you for using our plugin and your kind words!
   I think it is a great idea!
   We just released a new version of our plugin which implements this idea. The 
   following constants are now available:
 *     ```wp-block-code
       define( 'WP_REST_CACHE_TIMEOUT', 1 ); // Once everydefine( 'WP_REST_CACHE_TIMEOUT_INTERVAL', 3600 ); // Hour (in seconds)define( 'WP_REST_CACHE_MEMCACHE_USED', false );define( 'WP_REST_CACHE_GLOBAL_CACHEABLE_REQUEST_HEADERS', '' );define( 'WP_REST_CACHE_REGENERATE', true );define( 'WP_REST_CACHE_REGENERATE_INTERVAL', 'twicedaily' );define( 'WP_REST_CACHE_REGENERATE_NUMBER', 50 );
       ```
   
    -  This reply was modified 1 year, 4 months ago by [Richard Korthuis](https://wordpress.org/support/users/rockfire/).
 *  Thread Starter [lesandles](https://wordpress.org/support/users/lesandles/)
 * (@lesandles)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/feature-request-loading-settings-from-wp-config/#post-18209722)
 * Dear [@rockfire](https://wordpress.org/support/users/rockfire/) , that’s great
   news! Many thanks for the quick implementation!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Feature request: loading settings from wp-config’ is closed to new replies.

 * ![](https://ps.w.org/wp-rest-cache/assets/icon-256x256.png?rev=3328849)
 * [WP REST Cache](https://wordpress.org/plugins/wp-rest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rest-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [lesandles](https://wordpress.org/support/users/lesandles/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/feature-request-loading-settings-from-wp-config/#post-18209722)
 * Status: resolved