Tagged: Rest API
- AuthorPosts
- February 3, 2022 at 11:22 am #47271AlexGuest
Hello,
I wanted to ask you my site is a blog where every hour I post news and I created a connected app where I get the news of my db through API calls on my wordpress backend.
Since I have a lot of news about the db the API calls are slow due to complex queries, I wanted to put the response json to my API call in the cache, is it possible to do it with your Rest API in the pro version of W3 Total Cache? and then maybe I take the response json and upload it to bunnycdnFebruary 3, 2022 at 11:28 am #47305Marko VasiljevicKeymasterHello Alex,
Thank you for reaching out and for using W3 Total Cache.
If you use WordPress as a backend for integrations, API caching may be for you. Similar to page caching, repeat requests will benefit by having significantly lower response times and consuming fewer resources to deliver. If WordPress is not used as a backend, for additional security, the API can be disabled completely.
However, I am not quite sure about the question and use case you are referring to.
Let me check some more and I’ll get back to you with more information.
Thanks!February 4, 2022 at 5:52 am #47308AlexGuestmore details: i have a news site I use wp as a backend and every hour I post 1/2 news. To my site I connected my app that takes news, comments, etc. through API calls, but logically the queries are heavy, for now I recreate the cache every 5/10 minutes. My goal was to be able to cache the json I received as a response from the api and to recreate the cache only if new news is added, I tried with wp super cache, wp rocket, wp rest cache, wp rest cache api. Do you have any advice?
February 4, 2022 at 5:52 am #47338AlexGuestThanks Merko,
I solved - AuthorPosts
- The topic ‘Question about Rest API’ is closed to new replies.