Weird Caching Issue - WordPress + Ultimate Member + WP Engine + Cloudflare - wordpress

I am facing a very weird caching issue on my site. The site is hosted on WP Engine with Cloudflare setup. Here is the complete scenario when the user tried to access the site.
When the user upgrades to pro after successful payment, then all the pro listing should be visible to them OR I can say they can access pro listing. But after successful payment when a user tries to access the pro listing it shows you need an upgrade to pro. After hard refresh 2 to 3 times. It works normally.
Note:
I have already reached out to the support team. They are working
on it. I am just want to prepare my self for plan B :)
My site does not have any caching plugin.
I have already bypassed the caching from Cloudflare for that page.
I have added Cache Level to Bypass in page rules. Let me know if I need to add anything else to the page rules.
I am sure it is a caching issue. I am open to suggestions on how to fix that.
Thanks!

you can use wp-super cache plugin.
and you need to clear your browser cache.
I am using wp-engine. when I faced like that, I used wp-super cache plugin.
if the plugin is not working, you are working on different place.
check your file path, please. live site or staging site... because you might make a mistake..

Related

Wordpress site is not updating

Whenever I update something in my website whether it's on pages, posts, categories, menus, or more then it's not showing the changed result on the site when I open the website from google search or incognito. But it shows the changes when I access it from the dashboard.
More, I already have cleared the server cache, browser cache, website cache as well as Cloudflare cache but still not working.
So, can anyone help me out to fix this issue?
Thanks.
This is a cache-related issue. If you have used any caching plugin (WP-Rocket, W3 total cache, LiteSpeed, etc), you have to clear the cache from that plugin. You can use VPN & try a different browser to get the latest updates.
You can check instant results from different servers here:
Proxy Site

Caching on wordpress and pagebuilders

I am building a website and I am always having issues with development because of caching.
We are using Siteground with the SG Optimizer plugin active, we are using Elementor as page builder, we are using Sucuri who is also caching.
Does anyone knows what do I need to do to be able to see my website as it is, instead of the caching versions ? Many times I click on purge cache on Wordpress, or I go to Siteground to remove Memcache but is like I can't never see the changes i made on elementor in live.
Any help about how to avoir this kind of issues would be great !
Thanks!
Turn off the cache while developing.
Caching is only beneficial once in production.

Wordpress JSON API only working when logged in

I seem to be only able to access the wordpress json api when I am logged in in wordpress (no matter which endpoint, even on GET mypage.com/wp-json/). When I remove all cookies or logout and call the endpoint I get redirected to the login-screen.
Is this the desired behavior when I do not use nonces?
This happens on our staging environment, on our live-page everything works, I get results from the JSON API even if I am not logged in.
We created the staging site with the plugin from https://wp-staging.com/
So maybe there is a setting missing which has not been copied over? Or can I turn off checking for authentication / nonces on the API somewhere in the wordpress settings?
It turns out that the WP Staging Plugin has an option to limit access to the staging page which is set to "Administrators" by default. Turned it to "Allow access from all" and now it works.
On a WP website that I was asked to work on - it took me a lot of hours on debugging my own code (initially), then to start investigating the theme and finally deeper in other plugins and wp-core...
After all that, I found that the plugin members has functionality to restrict the rest_api access only to logged-in users.
There is a setting for this in the settings page of the plugin.
REST API -> Require authentication for access to the REST API.
So, I am posting this here, in case it could help someone else to avoid the same headache I encountered with this.

Why does any changes are not reflecting into word-press website?

My client is using GoDaddy server hosting for WordPress website.If i update some changes in pages its will reflected only when dashboard is opened else changes are reflected after 4 to 5 hours.
I also contact with my service provider for cleaning cache, but its don't work.
I am not able to identity where is the problem.
This definitely sounds like a cache problem.
Depending on your website hosting plan, this can affect the changes you/other users see on the site after you've made changes to the backend. If you use a shared hosting plan, you share your website server with other websites which can slow the website and sometimes affect the cache.
Firstly, make sure you've removed cookies from your browser relating to the website in question. This can affect how the website looks until new cookies are saved from the website.
You can download a cache plugin 'W3 Total Cache' on Wordpress and this can be integrated into your website to flush the cash from the dashboard. However on a GoDaddy shared hosting plan, I've found this doesn't always work. Worth a try though!
In the same way that your web browser has a cache of recent web pages, your Internet Service Provider (ISP) may be doing some caching on your behalf.
This could be the problem, so you may have to communicate with your Internet Service Provider to fix this problem.
I would call GoDaddy customer service again beforehand and explain your problem in more detail.
This is not a server issue , this is a cache issue. You need to clear cache from you back end wp-admin. After that please check your changes with hard refresh browser ctrl+shift+R or ctrl+f5. Wordpress changes will be reflect on to front end.

Website not posting to Facebook: security & app id issues

I'm a new WordPress designer. My site runs Tesseract Theme and is built with Beaver Builder.
PROBLEM: When I post my website (https://louiseclark.tech) on Facebook it removed my site after a couple minutes. Now when I try to post my site it gives me this message--> It looks like a link you're sharing might be unsafe. If you can, please remove this link: louiseclark.tech Note: The unsafe link might be on the page you’re linking to.
What I've done to try and resolve:
When I ran my site through the Facebook debugger I got this message:
The 'fb:app_id' property should be explicitly provided, Specify the app ID so that stories shared to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url when open the share dialog.
I created an app id following this instructional video: https://www.youtube.com/watch?v=V97h03H21y0
I pasted my app id into my Yoast SEO plugin under the Facebook category.
Check my Google Webmaster Tools Sitemap...all is verified and sitemap set.
SSL certificate is set - checked with my hosting company SiteGround. When I asked them about this problem they didn't really feel that the security issues where from their side.
I've reported this problem to the black hole that is Facebook support.
Thank you for any insight.
In case anyone sees this thread, I found the solution.
When I moved my WordPress sites to managed WordPress hosting I also migrated my websites to https with the SSL certificates. While the pages were migrated and displaying the https just fine, the images still held their old url (http).
I did two things:
I installed SSL Content Fixer plugin. This worked for some images but not others.
I installed Better Search Replace plugin. I had found the specific insecure images using Firefox. From my page in Firefox, I went to:
Tools -> Page Info -> Media This showed me every image/js/css call on this page. Finding these images allowed me to use the plugin to make the changes.
It worked. I'm quite sure knowing how to code my site would be much better in this situation. But I'm a newbie and this is what I could come up with.
What I learned: It's a flag when you have a secure site that embeds non secure objects/images.

Resources