OpCache
Opcode caching is done by compiling PHP into pre-compiled bytecode so that PHP doesn’t have to be re-interpreted per request. It is excellent for boosting the speed of large apps with many includes/require statements. With OpCache, page loading times can be decreased from several seconds to less than 500ms.
Enable opcache
FTP allows you to access your files through a 3rd party program such as FilzeZilla
Login
Log in to your account https://my.astrihost.com/index.php
- From the dashboard, click on ‘Login to Control Panel‘
Select
- Scroll to the ‘Software section‘
- Click on ‘Select PHP Version’.
Add FTP
- Find and select ‘opcache‘ from the list.
Opcode caching is now active.
Caching with WordPress
Enabling caching in WordPress is straightforward with the use of plugins. Here’s how to do it:
- Install a Caching Plugin:
- Go to your WordPress admin dashboard.
- Click on the “Plugins” icon, then select “Add New.”
- Type in the name of the caching plugin you want to install.
Popular caching plugins include:
- WP Super Cache
- W3 Total Cache
- WP Fastest Cache
Note: Only install one caching plugin to avoid conflicts and performance issues.
Leverage Browser Caching
Browser caching stores CSS, JS, images, and other static assets in the user’s local storage for a set period, reducing server load and speeding up page requests. Enable browser caching by adding the following lines to your .htaccess file:
plaintextCopy codeExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access



