Support » Plugin: Easy Bootstrap Shortcode » WARNING: Use of Easy Bootstrap Shortcode plugin may impact website performance

  • This plugin may will most likely impact your website performance because it uses the session_start() function on all page loads, regardless if the shortcode is used on those pages. The session_start function in PHP by default sends no-cache headers, which tells your web server infrastructure as well as your web visitors not to cache your pages.

    For example, if you are using a service such as Flywheel or WPEngine, or built you own server such as Varnish in front of your WordPress website with this plugin, your pages will not be cached as intended, causing each page to be re-processed for each request. Even if you do not use such services or have a caching server in front of your website, this plugin will send no-cache headers directly to each web visitor, which has a similar effect resulting in viewers to your website to have to re-request each page as the browser will not be able to cache the page according to the no-cache headers sent.

    One solution, you can add the following line to your wp-config.php:

    session_cache_limiter('');

    This line will tell the session_start() function not to send no-cache headers. ref: https://www.php.net/manual/en/function.session-cache-limiter.php Be aware that other plugins may be impacted by such a change if they also use session_start() and $_SESSION variables.

    Easy Bootstrap Shortcode plugin developers: I Highly recommend changing the logic to use the built-in WordPress WP_Object_Cache functions, ref: https://codex.wordpress.org/Class_Reference/WP_Object_Cache

  • You must be logged in to reply to this topic.