Site icon CleanTalk's blog

Auto-Update for CleanTalk Security Plugin

We recently launched an auto-update for the anti-spam plugin. The experience was positive and we implemented auto-update for the security plugin as well.

For the convenience of service management, the auto-update option was implemented in the Service Control Panel. CleanTalk Dashboard allows you to select several websites and update the plugin at once on all sites one click or you can setup auto-update for all websites or separate websites.

Note: there is 24 hours delay before auto-update will do. This delay allows needing to avoid any issues. All updates that made through CleanTalk Dashboard manually will do immediately.

How does it work?

 

Please, go to your CleanTalk Dashboard.

 

Next, when clicking on a link, a modal window opens with options for updates.

When the option is selected, the server makes a special request to the plugin on the client’s site.

The plugin, having received the call, checks the parameters of the call for authenticity and starts work. Auto-update is implemented through a modified class of auto-update plugins WordPress. After the class is finished, the plugin checks the version of the updated files and makes a request to the site (itself). If the HTTP response code is 200, it reports this to the server by displaying it on the “OK” page and makes a special API call, reporting on the new version. If the response code is different from 200, the plugin does a rollback of the files to the previous version and responds north with a string with an error code and technical parameters.

After a successful update, the status in the Service Control Panel changes to “App has been updated”.

Exit mobile version