Skip Navigation

[Resolved] 404 Errors with caching exclusions

This support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 2 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#2597447

I am trying to:
We're using custom post types for each Academic program as well as come other custom post types. We're regularly running into what I thought was a caching issue where 404 errors are triggered. However, I have excluded all of those URLs from caching and we are still having the issue.

Link to a page where the issue can be seen:
The Academic programs linked to from hidden link and hidden link

I expected to see:
Academic course post

Instead, I got:
Intermittent but regular 404 errors. When refreshed or site cache cleared, content shows correctly.

#2597585
masters-programs.jpg

Hello,

I have tried both URLs you mentioned above, it works fine, see my screenshot masters-programs.jpg

Is this problem resolved? please let me know if you still need assistance for it.

#2597749
Screen Shot 2023-04-21 at 8.27.13 AM.png

No, the problem is not resolved.

Your screenshot is from the wrong page - it's the Academic programs linked to from those two links. See screenshot attached.

As I mentioned, it is intermittent but regular 404 errors. When refreshed or site cache cleared, content shows correctly.

#2598325
non-404-1.jpg
non-404-2.jpg

Your screenshot does not show 404 errors, I assume we are talking about below URLs:
hidden link
hidden link
hidden link
...

I don't see any 404 errors, see my screenshots

Is there any missing steps? can you point out the problem post URLs?

#2598647

Yes, those are some of the most problematic URLs. As I mentioned, it is intermittent but regular 404 errors. What I'm trying solve is determining why, at times, these toolset posts are having the 404 errors despite having excluded those URLs from caching. Are there any potential conflicts? I'm using WP Engine for hosting and the client has cloudflare enabled.

#2598897

Toolset Types plugin is using WordPress built-in function register_post_type() to create custom post types:
https://developer.wordpress.org/reference/functions/register_post_type/

I did not see similar report, there might be other compatibility issue in your website, please try these:
deactivate all other plugins, and switch to WordPress default theme 2023, deactivate all custom PHP/JS code snippets, and test again