Use of undefined constant BLOG_ID_CURRENT_SITE




Wordpress LScache Plugin: Use of undefined constant BLOG_ID_CURRENT_SITE

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi Folks, I have WP in network mode, with WP Multi Network plugin installed. In WP Network admin, I set Network Enable Cache & Use Primary Site Configuration to Yes, and save config, then receive an error: Notice: Use of undefined constant BLOG_ID_CURRENT_SITE ? assumed BLOG_ID_CURRENT_SITE in /home2/username/public_html/wp-content/plugins/litespeed-cache/inc/config.class.php on line 281 I then cant find a way to configure the primary sites Litespeed Cache, receiving message: The network admin selected use primary site configs for all subsites. The following options are selected, but are not editable in this settings page. Help appreciated. Steve Hi Steve, To create a WP network, usually WP will give couple lines that needed to be added into wp-config.php, e.g. define(SITE_ID_CURRENT_SITE, 1) define(BLOG_ID_CURRENT_SITE, 1) If you use 3rd party plugin, please ask their author to honor this setting. Thanks. Thanks. I think the new web host I had transferred to commented out these lines. Ive un-commented them and the message is gone.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference