Experiencing database deadlocks intermittently. Since the solution offered is always, clear the WPML cache, is there a way to do this via the WP CLI so I can set up a cron to do this once a week?
Truncate the table icl_background_task so all entries are removed - clean slate
OR
Make sure that cron works
Enable Advanced Translation Editor if not enabled as an editor.
Can you tell me if any of the troubleshooting actions are available via the WP CLI? It would still be very useful to be able to execute some of these tasks via the command line instead of logging into the admin panel.
We have an unofficially WP-CLI integration used mostly by our development team and QA departments.
It's not officially announced, but safe enough to use. Please create a full backup and run the following WP-CLI command, which will exactly do what you wish:
$ wp wpml clear-cache
Once it's successfully done, the prompt will respond with "Success: WPML cache cleared"
The topic ‘[Closed] Experiencing database deadlocks intermittently’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.