Facebook Open Graph, Google+ and Twitter Card Tags
[resolved] [PATCH] Optimize DB calls (2 posts)

  1. flynsarmy
    Posted 3 years ago #

    I was browsing through the source and noticed you keep every WOG option separately in the DB. This means lots of DB calls are made when grabbing the options back out, slowing the frontend of the site down. I've written a (completely backwards compatable) patch that moves them all into a single option. This way you can grab all data out with:

    $options = wonderm00n_open_graph_get_settings();

    and then use it like

    if ( $options['fb_url_show']==1 && $options['fb_url_canonical']==1 )

    I've uploaded the patch to github.

    When testing that everything is working at it should, please do the following:

    • take note of your current settings
    • backup your db
    • install the updated version of the plugin
    • load either your site or the admin page and make sure all settings are how you left them.


  2. wonderm00n
    Plugin Author

    Posted 2 years ago #

    Sorry I haven't seen this before. For personal reasons I haven't been able to develop the plugin further until now.

    Anyway I implemented a similar solution in the new version of the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook Open Graph, Google+ and Twitter Card Tags
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.