• Resolved Anonymous User 13711045

    (@anonymized-13711045)


    1) I’ve disabled the auto regeneration of endpoints. I have the timeout set to an hour. Does the plugin clear the cache of that endpoint whenever somebody visits it after that hour?

    2) I have a nonce validation check in my endpoint function. Is the endpoint cached if the nonce is not validated?

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

    (@rockfire)

    Hi @thekendog

    Thank you for using our plugin!

    1. We are using the Transients API for caching, so as stated in the docs: Transients may expire before the $expiration (Due to External Object Caches, or database upgrades) but will never return their value past $expiration.

    2. If you have a nonce validation for you endpoint, you should probably not cache it. When an endpoint is cached and a cache is available, that cache is returned immediately and no other code is executed. So your nonce-validation is also not executed.

    Thread Starter Anonymous User 13711045

    (@anonymized-13711045)

    Once I looked into this some more I realized it uses transients. I went with a Fast CGI caching method instead as I was looking for a solution with no MySQL/PHP happening. Thanks for the help though.

    • This reply was modified 5 years, 4 months ago by Anonymous User 13711045.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A Couple Questions’ is closed to new replies.