Help Center
How to Integrate with W3 Total Cache
Introduction:
Integrating Apto CDN with W3 Total Cache is an effective way to enhance your website’s speed and reliability. W3 Total Cache is a powerful plugin designed to optimize WordPress performance through advanced caching mechanisms, and pairing it with Apto CDN ensures your static assets are served quickly from the nearest server location.
Prerequisites:
- Ensure W3 Total Cache is installed and activated on your WordPress site.
- You should have an active Apto CDN account configured with an API key.
Step-by-Step Guide:
- Access W3 Total Cache Settings:
- Log in to your WordPress admin dashboard.
- Navigate to Performance > General Settings.
- Enable CDN Support:
- Scroll down to the CDN section and check the box to Enable it.
- Select Generic Mirror from the dropdown menu as the CDN type.
- Configure the CDN Settings:
- After enabling CDN, navigate to Performance > CDN.
- In the Configuration tab, input your CDN details:
- Replace site’s hostname with:
https://s1.aptocdn.com/{domain}/
- Replace
{domain}
with your website’s domain (e.g.,https://s1.aptocdn.com/mywebsite.com/
).
- Replace site’s hostname with:
- Additional Configuration:
- Ensure that Host attachments, images, CSS, JS and other static files are selected under the General section for optimal use of the CDN.
- Save your changes by clicking Save Settings & Purge Caches.
- Verify the Integration:
- Go to the frontend of your website and inspect elements using Developer Tools (right-click > Inspect > Network tab).
- Ensure that URLs for static assets such as images, JavaScript, and CSS are being served from
https://s1.aptocdn.com/{domain}/
.
- Purge All Caches:
- To make sure the integration is complete, go to Performance > Dashboard and click Purge All Caches. This action clears the cache and forces W3 Total Cache to serve updated content through the CDN.
Troubleshooting Tips:
- Assets Not Loading from CDN: Double-check the CDN URL in the CDN Configuration tab for any typos or formatting issues.
- Mixed Content Warnings: Ensure the CDN URL uses HTTPS if your site runs on HTTPS to prevent mixed content issues.
- Missing Files: If certain files aren’t being served from the CDN, verify that they are included in the File Types to Include section under the General Settings.