If the plugin gets deactivated when clearing the cache, try the following methods:
Method 1 (Recommended): Disable the cron activation hook
Add the following code to the functions.php file of your active theme. This will stop the scheduled cron task responsible for plugin activation checks:
/**
* Disable Deblocker cron activation hook
*/
add_action('init', function () {
wp_clear_scheduled_hook('deblocker_cron_hook');
});This approach is preferred because it is stable and will not be affected by plugin updates.
Method 2 (Alternative): Change the validation schedule
You can modify the validation interval directly in the plugin file:
wp-content/plugins/deblocker/deblocker.php in line 270
Replace the default hourly schedule with one of the following options:
every_three_minutesevery_five_minutes
Important drawback:
Any changes made directly to the plugin file will be overwritten after updating the plugin. You will need to reapply them manually.
Note
After applying either method, make sure to deactivate and reactivate the plugin for the changes to take effect.
Comments
0 comments
Please sign in to leave a comment.