Autoinstall plugin




Wordpress LScache Plugin: Autoinstall plugin

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I have a PHP script that I use to automatically add wordpress plugins and auto-configure them. I would also do it with litecache. In particular, am I checking whether it is possible to start from an LSCWP_cfg file and have it imported automatically by the plugin? Or, what are the minimum keys to insert in the DB (wp_options) to make it work properly? Thank you! Hi @tt3ch, are you installing the plugin with wp command by PHP script? You dont need to setup DB option manually as our plugin will handle everything when running the installer. Hi stanley, I install some plugin with custom PHP script using Plugin_Upgrader wordpress class. After install plugins, I use update_option() for popolate wp_options table. Its possible call from custom PHP script the LiteSpeed_Cache_Import -> import() and pass an configuration backup file ? thank you Hi @tt3ch, sorry to let you know that we dont have an API for importing plugin config and we do not suggest editing the database options directly which it might cause a compatible issue on different site. Please follow the below reply for the instruction. Hi @tt3ch , Correction: Its possibile. This is a common scenario. We have couple APIs to import options when installing. Will give more details later. Just do this quick correction to avoid misleading. In CLI, we have LiteSpeed_Cache_Cli_Admin -> set_option() to set options. Also, you can modify data/const.default.ini to initialize the default options. In v3.0, things will be easier. We can add a new API to directly set config if you need. Thank you !



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



Reference