Tagged: W3 Total Cache Troubleshooting
February 11, 2021 at 12:31 pm #33705MatteoGuest
with W3TC active I have a 504 error when I update a post.
I found these errors using WP Crontrol: https://ibb.co/dW7k5CD
Can you help me?February 11, 2021 at 12:35 pm #33715
I am sorry about the issue you are experiencing with corn schedules and I am happy to assist you with this.
As you can see W3TC does have a few events scheduled, depending on features enabled in the General settings.
Also, as I can see in the screenshot WP_CRON_LOCK_TIMEOUT constant is defined to 60s
When WordPress is loaded, it checks to see if a cron job is running (if cron is locked). If cron is not locked, it will try to create a lock – if the lock timeout has not been reached, no lock can be acquired and cron will not run.
The constant is limiting the W3TC schedules and therefore those are not executed. You should either change the limit or comment out the WP_CRON_LOCK_TIMEOUT line in wp-config.
I hope this helps!
Thanks!February 12, 2021 at 6:35 am #33718MatteiGuest
thanks for your reply.
I set WP_CRON_LOCK_TIMEOUT to 0 and there isn’t errors: https://ibb.co/ckfmcgD
Unfortunately I have always 504 error when I publish or update a post. I have this error only with W3TC activated.February 12, 2021 at 6:40 am #33735
It would be great if you could share your website URL.
The Cron schedule for W3TC is not correct. I am not able to see the screenshot at the moment.
There is a possibility of a conflict so you should make sure that you do not have any other caching solution installed like server-side caching or any other caching plugin and make sure to disable it.
Thanks!February 12, 2021 at 9:02 am #33737MatteoGuest
Hi, this is my site: http://bit.ly/3d4VbCP
Now I use WP Supercache, I installed it after 504 error of W3TC. Of course I disable Supercache when I try W3TC.
My server use Varnish cache. Important: W3TC worked fine until your update of July 2020.February 12, 2021 at 9:05 am #33740
The most likely issue is that there are leftover files of the other caching plugin you are using and therefore is making a conflict with W3 Total Cache.
We cannot assist you in this case unless you completely remove the other plugins and make sure there are no leftover files.
Alternatively, we can offer you our premium support in Performance>Support.
Thanks!February 12, 2021 at 11:20 am #33745MatteoGuest
I removed Super Cache (and every files) + Autoptimize, reactivated W3TC, but nothing has changed.
Until your update of July I never used Super Cache, but I had same 504 error. I don’t know what you change on July.
Before July 2020 I had Autoptimize and W3TC and the site works fine 🙁February 12, 2021 at 11:30 am #33753
Thank you for the information.
In the July 2020 update, we’ve fixed the following:
- Fixed Take “Accepted Query Strings” into account when “Cache query strings” enabled
- Fixed the typo in the variable for lazy loading
- Added lazy load Google Maps reference to the general settings page
- Added Support background-image: together with background: for lazy loading
So there is nothing that would suggest the issue you are referring to except if you are possibly caching a query string.
As I can see you are using Page Cache with Memcached. I would suggest switching to Disk: Enhanced, as it’s more performant than any other caching method when it comes to page caching, and see if the issue persists.
- The topic ‘Cron error 504 when I update a post’ is closed to new replies.