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

Foliovision

Main navigation

  • 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 6 years, 9 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 7 years ago

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

    Martin 7 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 7 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

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

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 © 2025 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‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!