Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
loading
  1. Home
  2. Hostvento Products
  3. How to enable caching for WordPress on Turbo servers
Updated on June 23, 2024

Hostvento Products

  • Folder icon closed Folder open iconHow to log in to your Managed WordPress account
  • Folder icon closed Folder open iconHow to install Jetpack on a managed WordPress site
  • Folder icon closed Folder open iconHow to manage WordPress backups with Jetpack
  • Folder icon closed Folder open iconUsing Jetpack on Managed WordPress
  • Folder icon closed Folder open iconHow to reset the WordPress administrator password in Managed WordPress
  • Folder icon closed Folder open iconHow to configure Jetpack backups on Managed WordPress
  • Folder icon closed Folder open iconDifferences between Turbo Web Hosting servers and Drive Web Hosting servers
  • Folder icon closed Folder open iconHow to disable OPcache on Turbo servers
  • Folder icon closed Folder open iconHow to enable caching on Turbo servers
  • Folder icon closed Folder open iconHow to enable caching for WordPress on Turbo servers
  • Folder icon closed Folder open iconHow to enable caching for Drupal on Turbo servers
  • Folder icon closed Folder open iconHow to enable caching for Joomla on Turbo servers
  • Folder icon closed Folder open iconHow to clear the LiteSpeed cache manually and with a plugin
  • Folder icon closed Folder open iconHow to disable PHP connection timeouts on Turbo servers
  • Folder icon closed Folder open iconQUIC (Quick UDP Internet Connections)
  • Folder icon closed Folder open iconHow to use the LiteSpeed Web Cache Manager
  • Folder icon closed Folder open iconManaged WordPress on cPanel
  • Folder icon closed Folder open iconManaged WordPress on Plesk
  • Folder icon closed Folder open iconHigh MySQL database usage on shared hosting accounts
  • Folder icon closed Folder open iconHigh CPU usage on shared hosting accounts
  • Folder icon closed Folder open iconHigh bandwidth usage on shared hosting accounts
  • Folder icon closed Folder open iconExcessive disk usage on shared hosting accounts
  • Folder icon closed Folder open iconSupported and unsupported Managed VPS and Managed Dedicated Server customizations
  • Folder icon closed Folder open iconHow to set up New Relic on a managed VPS or Dedicated Server
  • Folder icon closed Folder open iconHow to install an operating system on a Virtualizor-based unmanaged VPS
  • Folder icon closed Folder open iconHow to Change Passwords on an Unmanaged VPS Using Virtualizor
  • Folder icon closed Folder open iconHow to order an email hosting plan
  • Folder icon closed Folder open iconHow to set up your domain's DNS records for Professional and Pro Plus Email Hosting
  • Folder icon closed Folder open iconHow to set up DKIM (DomainKeys Identified Mail) for Professional and Pro Plus Email Hosting
  • Folder icon closed Folder open iconHow to manage Professional and Pro Plus Email Hosting accounts
  • Folder icon closed Folder open iconHow to import contacts into Professional and Pro Plus Email Hosting
  • Folder icon closed Folder open iconHow to change your password in Professional and Pro Plus Email Hosting
  • Folder icon closed Folder open iconHow to set up Professional and Pro Plus Email Hosting on Android devices
  • Folder icon closed Folder open iconHow to set up Professional and Pro Plus Email Hosting on Apple iOS devices
  • Folder icon closed Folder open iconHow to manage your email in Professional and Pro Plus Email Hosting webmail
  • Folder icon closed Folder open iconHow to manage email signatures in Professional and Pro Plus Email Hosting
  • Folder icon closed Folder open iconHow to integrate Professional and Pro Plus Email Hosting accounts with Gmail
  • Folder icon closed Folder open iconHow to set up Microsoft Outlook for Professional and Pro Plus Email Hosting accounts
  • Folder icon closed Folder open iconHow to set up Microsoft Mail for Professional and Pro Plus Email Hosting accounts
  • Folder icon closed Folder open iconHow to set up an email client application for Professional and Pro Plus Email Hosting accounts
  • Folder icon closed Folder open iconHow to clear the webmail cache in Professional and Pro Plus Email Hosting accounts
  • Folder icon closed Folder open iconHow to change the number of email accounts in Professional and Pro Plus Email Hosting
  • Folder icon closed Folder open iconComparison of email hosting from Hostvento Hosting and Barracuda email
  • Folder icon closed Folder open iconHow to enable two-factor authentication for Professional and Pro Plus Email Hosting
  • Folder icon closed Folder open iconTurbo Hosting Information
    • How to enable caching for PrestaShop on Turbo servers
  • Folder icon closed Folder open iconManaged WordPress hosting
  • Folder icon closed Folder open iconSmart System Notifier
    • How to identify and reduce high disk usage on shared hosting accounts
  • Folder icon closed Folder open iconManaged server customizations
  • Folder icon closed Folder open iconCPU configurations in Hostvento Hosting VPS products
  • Folder icon closed Folder open iconPackages Supporting Turbo Boost
  • Folder icon closed Folder open iconCloudLinux monitoring and limits
  • Folder icon closed Folder open icon'503 Service Temporarily Unavailable' message
  • Folder icon closed Folder open iconPerformance Plus traffic spike protection upgrade
  • Folder icon closed Folder open iconHow to install LiteSpeed on an unmanaged server
  • Folder icon closed Folder open iconHow to access and use Webuzo on an unmanaged server
  • Folder icon closed Folder open iconUnmanaged VPS information
    • How to install an operating system on an unmanaged VPS
    • How to access cPanel with an unmanaged VPS
  • Folder icon closed Folder open iconChanging the time zone on a managed hosting account
  • Folder icon closed Folder open iconHow to change the time zone on an unmanaged hosting account
  • Folder icon closed Folder open iconEmail Hosting
    • How to import email data to Professional and Pro Plus Email Hosting accounts
    • How to manage external email forwarders in Professional and Pro Plus Email Hosting
    • How to reduce the number of accounts for Professional and Pro Plus Email Hosting plans
  • Folder icon closed Folder open iconDifferences between OpenVZ 6 and Virtuozzo 7

How to enable caching for WordPress on Turbo servers

Estimated reading: 4 minutes 178 views

The process of turning on WordPress caching on a Turbo server is covered in this post.

  • The information in this article is specific to WordPress. For general information about caching on Turbo account.
  • It is no longer necessary to manually edit .htaccess files as described in this article. Instead, you can use the LiteSpeed Cache for WordPress plugin to quickly and easily configure caching for the WordPress user interface. For more information.

Optimize your site quickly and easily with the Hostvento Optimized plugin! Instead of manually editing configuration files, you can configure caching and much more from one convenient interface. For more information.

  • Enabling caching for WordPress
    • Caching and static content
  • More Information

Enabling caching for WordPress

To enable caching for WordPress on a Turbo server, follow these steps:

  1. In the directory where you installed WordPress, open the .htaccess file in a text editor. You can use one of the text editors in cPanel, or you can log in to your account using SSH and use a command-line editor.If the .htaccess file does not exist, create it.
  2. Copy the following text and paste it at the top of the .htaccess file: RewriteEngine On RewriteCond %{REQUEST_METHOD} ^GET|HEAD$     RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteCond %{REQUEST_URI} !login|admin|register|post|cron RewriteCond %{QUERY_STRING} !nocache RewriteRule .* – [E=Cache-Control:max-age=300]
    • These caching configuration directives must be at the top of the .htaccess file.
    • You only need to include the HTTP_HOST configuration line if you host more than one domain in the public_html directory (such as your primary domain and a subdomain). Replace example.com with the domain name for which you want to enable caching.
    • The QUERY_STRING configuration line enables you to see the non-cached version of any page by adding nocache to a query string in the URL. For example, to view the non-cached version of http://example.com/mypage, you could add ?any_field=any_value&nocache to the end of the URL.
  3. Save your changes to the .htaccess file. Caching is now enabled.
    To verify that caching is working correctly on your account, you can examine the raw HTTP headers sent between the browser and web server. (To do this, use a browser plugin that displays the raw headers such as Live HTTP headers for Mozilla Firefox, or the Developer Tools feature in Google Chrome.) When content is served from the cache, the server adds the following line to the HTTP response header:
    X-LiteSpeed-Cache: hitIf you do not see this line in the HTTP response header from the server, then the content was not served from the cache.
Caching and static content

Static items, such music and image files, are not cached by Turbo accounts on the web server. Instead, client web browsers cache this kind of content. However, you can use the ExpiresByType directive in the.htaccess file to indicate how long web browsers should cache your static content. For instance, the lines that follow tell web browsers to store GIF files in their cache for 30 days (2592000 seconds) and MP3 files in their cache for a year (31557600 seconds):

ExpiresByType audio/mp3 A31557600
ExpiresByType image/gif Hostvento592000

For more information about the ExpiresByType directive, please visit https://httpd.apache.org/docs/2.4/mod/mod_expires.html#ExpiresByType.

More Information

For detailed information about LiteSpeed caching, please visit http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:litespeed:cache.

SQLite information

Still stuck? How can we help?

How can we help?

Was this page helpful? Yes No

Share this Doc

How to enable caching for WordPress on Turbo servers

Or copy link

Clipboard Icon
CONTENTS
Leaf Illustration

© 2023 All Rights Reserved by Hostvento