The LiteSpeed Cache for WordPress (LSCWP) plugin improves site performance by leveraging the LiteSpeed web server’s built‑in page caching. It stores dynamically generated pages in cache, resulting in faster load times for visitors. On ruachost.com, installation and configuration are straightforward.

 

Why Use LiteSpeed Cache?

  • Significantly improves page load speed.

  • Reduces server resource usage.

  • Provides advanced optimization features (image optimization, CSS/JS minification, CDN integration).

  • Works seamlessly with WordPress multisite and WooCommerce.

 

Installing the Plugin

  1. Log in to WordPress as the administrator.

  2. In the left sidebar, click Plugins → Add New.

  3. In the search box, type LiteSpeed Cache.

  4. Locate the plugin and click Install Now.

  5. After installation, click Activate.

✅ The plugin is now installed and ready to configure.

 

⚙️ Configuring the Plugin

  1. Access Settings.

    • In the WordPress dashboard, click LiteSpeed Cache → Settings.

  2. General Tab.

    • Configure TTL (time‑to‑live) settings to control how long content types remain cached.

  3. Cache Tab.

    • Manage caching for special content types (e.g., login pages, REST API calls).

  4. Purge Tab.

    • By default, cache is purged when plugins, themes, or WordPress itself is updated.

    • You can also manually purge cache:

      • Go to LiteSpeed Cache → Manage → Purge.

  5. Excludes Tab.

    • Define which content types should not be cached.

  6. Optimize Tab.

    • Enable CSS/JS minification, image optimization, and other performance tweaks.

    • ⚠️ Test thoroughly — aggressive optimization can break site functionality.

  7. CDN Tab.

    • Configure Content Delivery Network settings for global performance.

  8. ESI Tab.

    • Use Edge Side Includes (ESI) to cache portions of pages separately.

  9. Advanced Tab.

    • Miscellaneous advanced settings. Be cautious — incorrect changes may cause site issues.

  10. Debug Tab.

    • Enable debugging options to troubleshoot problems.

  11. Save Changes.

    • After configuring, click Save Changes to apply settings.

Notes

  • Default settings are appropriate for most sites【edge_current_page_context†source】.

  • Always test your site after making changes to ensure functionality.

  • Combine LiteSpeed Cache with a CDN for maximum performance.

آیا این پاسخ به شما کمک کرد؟ 0 کاربر این را مفید یافتند (0 نظرات)

Powered by WHMCompleteSolution