• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

URGENT massive site performance risk: `update_option()` fails `autoload = no`

[Solved]

Foliovision › Forums › FV Player › Bug Reports › URGENT massive site performance risk: `update_option()` fails `autoload = no`

  • Leho Kraav 7 years, 6 months ago

    # wp plugin list –status=active | grep fv
    fv-wordpress-flowplayer active none 6.6.6
    fv-player-pro active none 7.1.5.726.beta

    This seems to be a regression from https://foliovision.com/support/fv-wordpress-flowplayer/requests-and-feedback/vimeo-issue-2 or a new component failed to recognize the dangers of wp_options autoload.

    Our app profiling tool noticed a massive abnormal memory use (400MB memory usage just by loading wp_options autoload values), but it took me a while to understand how to pinpoint it.

    fv-player-pro/fv-player-pro.class.php L730 is the guilty party, where it uses update_option() to store vimeo transcript cache WITHOUT explicitly setting autoload = 'no' parameter. WP API defaults to yes, and this causes potentially hundreds of MBs of irrelevant transcript data loaded on every request everywhere (incl wp-admin!).

    BAD:

    update_option($option_name, $option);

    MAYBE SAFER:

    update_option($option_name, $option, false ); // @leho 2018.07.18

    RETROACTIVE FIX

    $ wp db cli
    mysql> UPDATE wp_options SET autoload = 'no' WHERE option_name LIKE 'fv_player_pro_transcript_%' AND autoload = 'yes';

    Immediately after the query, request memory usage dropped 10x and is back to normal.

    This is a super bad situation, I recommend fixing immediately.

    c128f001-7247-499c-82f3-14236d34b1db
    c128f001-7247-499c-82f3-14236d34b1db
Viewing 4 replies - 1 through 4 (of 4 total)
  • Leho Kraav 8 years ago

    Would really be nice if your comment formatter would manager to understand standard </code> and <code>something` markup better.

    Martin 8 years ago

    Hello Leho,

    thank you for the bug report!

    I’m sorry about the issue you have been facing here, specially as we faced similar issues before with some other plugins. At certain scale issues like this can appear, specially when using wp_options.

    We will adjust the update_option() call to not use autoload as you suggested. While it’s not a perfect solution (the wp_options table remains big) it will work for now, as we are moving to a new database model.

    Thanks,
    Martin

    Leho Kraav 8 years ago

    Thanks. “wp_options” can handle a ton of data (I’m not worried about the table size at all), but yeah must avoid autoloading the rows. You should really find a way to retroactively run the SQL query for other customers, who may not be savvy enough to do it on their own, or even know to search for it as a bug.

    Looking forward to the data model migration, but this change alone should certainly work well enough for a while.

    Martin 7 years ago

    Hello Leho,

    I forgot to post an update here – FV Player Pro uses autoload properly since version 6.6.7 (or 7.1.10.726.beta).

    The next version will also include code to fix this retroactively. Every time FV Player Pro is updated it clears the data cached for Vimeo, so I set that to remove these fv_player_pro_transcript_* options too. That way the old table rows with autoload will get deleted.

    Thanks,
    Martin

Viewing 4 replies - 1 through 4 (of 4 total)
Reply To: URGENT massive site performance risk: `update_option()` fails `autoload = no`



Please Sign in or Register to upload files.

Related Posts

  1. Interactive Video Transcript

  2. Why WP Rocket fails on high traffic sites and how to fix it

  3. FV Player’s New Feature: Interactive Video Transcript

Primary Sidebar

Bug Reports

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    Footer

    Our Plugins

    • FV WordPress Flowplayer
    • FV Thoughtful Comments
    • FV Simpler SEO
    • FV Antispam
    • FV Gravatar Cache
    • FV Testimonials

    Free Tools

    • Pandoc Online
    • Article spinner
    • WordPress Password Finder
    • Delete LinkedIn Account
    • Responsive Design Calculator
    Foliovision logo
    All materials © 2026 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
    • This Site Uses Cookies
    • Privacy Policy
    • Terms of Service
    • Site Map
    • Contact
    • Tel. ‭+421 2/5292 0086‬