Wordpress LScache Plugin: Lightspeed Errors
Last Updated on: Wed, 15 Apr 2026 00:00:02 I have been seeing continual errors in lightspeed error logs: ReferenceErrorphp_data is not defined /wp-content/litespeed/js/6c49f5c3cb9d989815a1b16ca18381a2.js in ? ReferenceErrorCant find variable: php_data /wp-content/litespeed/js/6c49f5c3cb9d989815a1b16ca18381a2.js in global code There are lots of slow queries eg: LiteSpeed Img_Optm->img_count() SELECT COUNT( ) FROM wp_posts a LEFT JOIN wp_postmeta b ON b.post_id = a.ID WHERE a.post_type = attachment AND a.post_status = inherit AND a.post_mime_type IN (image/jpeg, image/png, image/gif) AND b.meta_key = _wp_attachment_metadata Might site has been having issues going over cpu i/o useage etc since using this plugin. I am not a developer. I am at a loss and this is affecting my site. Please explain how to fix. Id suggest using a browsers developer tools, network. See if youre loading guest.vary.php okay. Hi, please provide the report number , you can get it in toolbox -> report -> click send to LiteSpeed the slow query is normal , its backend image optimization process well , you can not expect zero IO or CPU when you doing image optmization in background ? Best regards, Im still waiting on a reply to my query. I sent the report in. There should be no backend image optimisation occurring because this is all turned off. @splaquet i cant see this code at all. Im not sure where to look. Hi, once you click send , it will generate you a 8-letter string , please provide me that string to locate your report Best regards, VUVQSEOM seeing continual errors in lightspeed error logs where exactly did you see it ? which error log you referred to ? See my first question. You can see these in all speed test software and logrocket software. Hi, yes, I saw the first post , which makes me wonder which log you referred to , because the message itself looks like something from dev tool console would show I just tested with GTMetrix, but didnt see any error message as in your first post , may I know where exactly can I see it ? assuming its a JS error from dev tool console , first of all please try disable all the JS options , purge all , to see if error still shows , if that is gone , then try to narrow down which option caused and then seek how to deal with it Best regards, Im not a dev. How do I disable JS options and do you mean for lightspeed only? Is the wp-content lightspeed your plugin or lightspeed the hosting caching side? Some of that info would have come from query monitor Hi, it should be in wp-admin -> LiteSpeed Cache -> Page Optimization -> JS options Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference