• This is going to sound crazy.

    I’m developing a rather large WordPress multisite that’s using Carrington Build.
    Twitter Search uses widget ids to cache the results. Carrington Build does all kinds of strange things to widgets. One of which is not setting unique ids for each widget (don’t ask me… something to do with magic).

    SO! I’m proposing instead of using the widget id we use the query. I know I know. That’s crazy-pants. Hear me out.

    Doing the query will make queries cross-site cache no matter where they show up and in which widget. It will also solve my problems, but that’s a sideline issue.

    To prevent crazy option names we can get all fancy and hash that shit.
    I’m proposing to change line 304 (and other instances of get_option/update_option) to:
    $tempJSON = get_option(md5(utf8_encode("twitsearch_cache_{$query}")));

    Sound like fun?

    https://www.ads-software.com/extend/plugins/twitter-search-for-wp/

  • The topic ‘[Plugin: Twitter Search] Widget IDs’ is closed to new replies.