• Resolved billerr

    (@billerr)


    Hi!
    I installed this plugin to a client’s website, but I can’t see any caches beeing generated for the endpoints. I’ve tried the following:

    • Checked the /wp-content/mu-plugins/ directory – the proper folder and .php file are there.
    • Deactivated and re-activated the plugin a few times.
    • Hit several endpoints: default /posts & /pages, as well as custom post types (no custom controller, they were declared normally with register_post_type and ‘show_in_rest’ => true)
    • Hit the endpoints through a React frontend (intended use) and manually through the browser’s address bar.
    • Changed setting in the Settings tab: lowered the Cache timeout, enabled cache regeneration for a while with a 5-min interval.

    Still nothing, I can’t see any caches in the Endpoin API Caches tab. The error log also shows nothing from this plugin while I did the above.

    Is there anything else I might be overlooking?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Richard Korthuis

    (@rockfire)

    Hi @billerr

    Thank you for using our plugin!

    I am sorry to hear you are having trouble using our plugin and I must say I don’t have a straight answer for you what might be causing this. So I have some questions for you in order to help you debug this issue:

    • You did not change anything to the default WP REST API endpoint? So it is still accessed via for example https://example.com/wp-json/wp/v2/posts ?
    • Could you check your database and see if the wp_wrc_caches and wp_wrc_relations tables are there? (Keep in mind the wp_ prefix might be different)
    • Could you check your wp_options table for the values of the following options:
      – wp_rest_cache_allowed_endpoints
      – wp_rest_cache_rest_prefix
      – wp_rest_cache_allowed_request_methods
    Thread Starter billerr

    (@billerr)

    Hi again!

    The API endpoints were left as-is, exactly like the example you said.
    I didn’t have the chance to check the database, as we upgraded our WP installation for other reasons. Originally we were running version 4.7.8 (the version where the plugin didn’t work) – after upgrading to 5.4.1 and installing the plugin again, everything works flawlessly.

    So I’m reporting back in case there is some version incompatibility issue there. Sorry I’m not able to test more but I don’t have the original installation available anymore.

    Plugin Author Richard Korthuis

    (@rockfire)

    Hi @billerr

    Thank you for reporting back to us. Glad to hear the problems are solved for you! We will investigate the issue with the version you mentioned, but for now we will mark this topic as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Empty “Endpoint API Caches”’ is closed to new replies.