Wordpress Api not up to date - wordpress

I'm working on a project using WP's API along with VueJs + Nuxt for the front-end. Everything seemed to be working just fine, but since yesterday not all of my changes are fetched by the API.
It's really weird because, in the WP admin my changes are displayed as normal, but when looking at the response using postman, I can only see what was on my site prior to my changes, or only a few recent changes that don't even appear on the final render.
I am not using any type of extensions for cache as of now, but I've tried several extensions to empty it anyway, even if all of them signaled me that nothing is in the cache.
Could it be that the API got somehow "stuck" at some point and now no update is ever taken into account? Then is there anyway to "reset" this and force it to update?

Problem solved! I am using Gandi to host my site and I had no idea thye used Varnish as a caching solution. Disabled it and everything went back to normal. Thanks for your answers!

Related

Disable SSR in just one page in .next

I got the hard mission of making my SEO better in a legacy website that uses .nextjs, react and unleash...
The previous developer disabled the SSR and maintained everything cached on cloudfrond...
I changed my unleash lib for one in .next and automatically got my SSR working locally. So far so great, but when I publish it, the cache gets in the way, and the request of the register form doesn't get in my backend (cloudfront sends me a 500). I know that the best solution is to set my backend and remove the cloudfront. But for deadline purpose I am trying to disable SSR just in the form page while maintaing it in my home and informations pages.
Does anybody knows if this is possible? do you guys have a article or something?

Woocommerce rest api not updating order list

I'm using woocommerce rest api version 2 and I'm having problem to list all order as its not giving me list of all recently added orders.
For example: If I had add one order which has order id :1922 so its added to backend but when I want to view orders using this api : wp-json/wc/v2/orders
it give me all orders except order which I had recently added which is 1922.
Its working charm till I have transferred server but after moving to other server it suddenly stopped working and due to that I'm having issue in my Ionic app in which I'm using Woocomerce v2 API.
What would be the issue?
I have solved this issue by disabling static and dynamic cache and also cleared memcache too.
Its actually issue in server side above actions need to done and i disabled static and dynamic cache and also cleared memcache so it solve the issue.
So if anyone have such kind of issue please follow this step and issue will be resolved but if you have transfered site from one server to another then this solution will help.

Unable to remove page from Google Amp cache

I'm having trouble using Google's API to update amp pages from a site I'm working on. The site is a Wordpress based site using WP Amp to generate amp pages, it appends /amp to any enabled pages.
I've read the documentation here and it seems like it should be a simple GET request using this structure:
https://cdn.ampproject.org/update-ping/c/s/www.example.com/example-category/example-page/amp
..which gives me a 204 No Content reply (to be expected Google's docs say). However, when retesting via my phone (with cache cleared etc) it is showing the same old amp page not the updated one.
Surely I'm missing something obvious, look forward to finding out what it is.
Figured this out finally after leaving it for a while and coming back to it.
The URL format for updating Google's cache is:
https://www-example-com.cdn.ampproject.org/c/s/www.example.com/example-category/example-page/amp
Google states that to update you need to have the /update-ping/ prefixing the /c/s switches but that never worked for me. After much trial and effort using the above format works for me every time.
If you run it in your browser expect to see the old version on first page load but if you refresh after that the updated amp page should show.

WordPress cache on the backend side

I have the same problem on different WordPress based websites.
I developed some of them, while others are made by someone else.
They don't have that much in common: completely different websites, different themes/plugins and so on.
Recently in these websites, I've been experiencing this problem: WordPress is caching the backend in a really tough way and, after saving any edits, I have to force a refresh with ctrl+f5 to actually see the edits I made before.
After some digging I can assure that:
it doesn't seem to depend on the webserver (same problem on nginx and on apache)
it doesn't depend on varnish or wp caching plugins (it happens also on website without any cache solutions)
it happens just in some new wp releases, I'm not experiencing this problem on older websites
it doesn't depend on my pc/browser configuration because my colleagues are experiencing the exact same problem on their pc
Anyone who had the same problem and was able to find a solution?
EDIT: It actually happened also on a fresh WordPress installation. Once I created a page, I went back to the page list by clicking on the menu item and I couldn't see the page in the list. After forcing a page refresh the newly created page was there as it was supposed to be before.

Wordpress not reflecting phpMyAdmin database changes unless I log in

this is I think a really unusual case. A little backstory, I outsourced a PSD to WP project a few months ago, but not currently working with the developer anymore as he stopped replying to my support questions. I'm trying to solve this on my own before I give this to the client, as I have no more budget to hire another developer.
I have two problems, first is I couldn't access the WP dashboard even though my login is an admin account. Been trying to solve this through numerous google searches and blog posts but to no avail, I couldn't fix it.
Here goes my main problem: So I finally found a way how to update the content on the site using the phpMyAdmin backend database. (good thing I know HTML CSS)
I managed to update the content, but when I tested the site using incognito window and other profiles / browsers, the changes from phpMyAdmin does not reflect on the site. I tried logging in, and weirdly, the changes are there. I log out, changes are there.
I just find it really weird and a hassle that I have to log in to see those changes. It's a client facing site, and the changes are really important so I hope someone has experienced this before and can help me out. Thanks in advance.

Resources