• At function “vote_poll_process” from PHP file “wp-polls.php”, can you modify this function so that for Poll Logging Method using “Do Not Log”, it should not need to call poll_get_hostname() function.

    In this function, there is gethostbyaddr() function which causing unnecessary trigger and will affect the performance. Since “Do Not Log” will not restrict user voting submission, can you add a condition checking not to call poll_get_hostname() function ?

    thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Lester Chan

    (@gamerz)

    I don’t see how will it affect performance. I have seen some heavy sites using my plugin as well and this seems to be fine. Unless your server is not configured correctly?

    In any way, you can always modify the code yourself.

    https://github.com/lesterchan/wp-polls/blob/master/wp-polls.php#L1376

    Just change it to $pollip_host = $poll_logging_method > 1 ? poll_get_hostname() : '';

    If there are a few requests for this, I will consider adding it to the code.

    • This reply was modified 5 years, 10 months ago by Lester Chan.
    • This reply was modified 5 years, 10 months ago by Lester Chan.
    • This reply was modified 5 years, 10 months ago by Lester Chan.
Viewing 1 replies (of 1 total)

The topic ‘Disable poll_get_hostname() for Poll Logging Method Do Not Log’ is closed to new replies.