WordPress.org

Forums

leenk.me
[resolved] leenk.me plugin overloading server (4 posts)

  1. Sebastian
    Member
    Posted 2 years ago #

    the leenk.me plugin is doing an ajax request every second when a post editor window is open. On a shared host that quickly overloads the server if more than one post is edited at the same time. Is there a way to stop or at least throttle this traffic. I can't see why staying in contact with the server this frequently would be necessary for the function of this plugin.

    http://wordpress.org/extend/plugins/leenkme/

  2. leenkme
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Sebastian... this is what generates the "live preview" for each social network. It shouldn't be doing it every second though, should be every 3 seconds.

    Anyway, you can disable it be dequeue those scripts. You would add some code like this to your theme's functions.php file:

    wp_dequeue_script( 'leenkme_post_js' );
    wp_dequeue_script( 'leenkme_twitter_post_js' );
    wp_dequeue_script( 'leenkme_facebook_post_js' );
    wp_dequeue_script( 'leenkme_linkedin_post_js' );
    wp_dequeue_script( 'leenkme_friendfeed_post_js' );

    You won't get the live preview anymore, but everything else should work.

    Let me know if you run into any trouble.

  3. Sebastian
    Member
    Posted 2 years ago #

    When I do that, will I still be able to manually change the content of each update?

  4. leenkme
    Member
    Plugin Author

    Posted 2 years ago #

    You should be able to, yes. Let me know if it doesn't work though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • leenk.me
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags