Bruno De Angelis
Forum Replies Created
-
Forum: Plugins
In reply to: [WP REST Cache] ACF changes not cachingHi @rockfire
I was able to also put the
type
field in the response, since I’m changing it a bit infunctions.php
. Now the plugin flushes the cache appropiately as soon as I change any field. However, something odd has happened. When I append the_envelope=1
query param to the request (I use it for getting the amount of posts returned), the response simply crashes: https://pasteboard.co/JMGWuXb.pngAny other query param seems to be working: https://pasteboard.co/JMGWYZh.png
Any idea why this could be happening? In any case, your help has been amazing! Thank you very much.
Forum: Plugins
In reply to: [WP REST Cache] ACF changes not cachingHi @rockfire,
the problem is exactly what you mentioned. It says “unknown” in the Object Type: https://pasteboard.co/JMzyx5V.png
Adding the script in functions.php doesn’t seem to be fixing the problem. I assume I must add some code, but I’m not exactly sure how to detect the object type automatically.
Thank you!
Forum: Plugins
In reply to: [WP REST Cache] ACF changes not cachingThis is my list of currently installed plugins: https://pasteboard.co/JLKz4qi.png
So yes, I am using “ACF to REST API” plugin. It also happens with the custom post title for example. I change something, save, and the API response is the same as before. When I deactivate WP Rest Cache, the response updates.
Also, these are some of the endpoints that are being cached, if it helps for anything: https://pasteboard.co/JLKEtO0.png
Is there any setting I could be missing? Thank you for the quick response!
- This reply was modified 4 years, 1 month ago by Bruno De Angelis.
- This reply was modified 4 years, 1 month ago by Bruno De Angelis.