• Resolved lesandles

    (@lesandles)


    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

    (@rockfire)

    Hi @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:

    define( 'WP_REST_CACHE_TIMEOUT', 1 ); // Once every
    define( '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 );
    Thread Starter lesandles

    (@lesandles)

    Dear @rockfire , that’s great news! Many thanks for the quick implementation!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.