Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The module uses db_update to publish and unpublish nodes and comments, which would bypass the hook system
e.g. hook_node_presave
I'd suggest switching to the node and comment functions to make the changes.
Comments
Comment #1
T-loComment #2
T-loComment #3
T-lothis would also remove the requirement to run cache_clear_all() in several places in the module, as the user and entity caches would be triggered as usual.