How to integrate Hostry CDN with OpenCart
Open the official module web page and upload the CloudCache OCXXX.zip module.
Do not choose the vQmod version – the OCXXX.zip module is preferable, and it can be downloaded from the “admin” and “system” folders from the CloudCache module to the root path of your website.
Proceed to the admin panel of your OpenCart store and open the modules list on Extensions → Modules. Find the “Install” button on the right side to have the module installed.
Now when you’re done with installations, you should get back to the list of modules and click “edit” button on the right side modules list in the CloudCache module row.
Select “Enabled” option on the drop-down list to enable the module.
Enter the temp URL (e.g. cdn. your-domain.net) or the Custom Domain in the text box.
Find out which file types you want your CDN to deliver.
Click “Save” to leave these settings.
You need to change “cdn.your-domain.net” to whatever your custom domain or temporary URL is.
Then check whether CDN was implemented correctly by reloading your website and looking at the source code.
If you don’t see CDN URLs applied in your source code, you need to check whether opencard pushes compression, and if it does, disable that.
Proceed to OpenCart admin Dashboard, then go to System – Settings.
Then click on Edit button and find Server tab.
Find Output Compression Level and set it to 0.
Click Save button.
Sometimes you can see an error popping up on the top of the page (frontend or backend/admin area) that point out the variable HTTP_IMAGE:
Notice: Use of undefined constant HTTP_IMAGE – assumed ‘HTTP_IMAGE’ in /system/library/response.php on line 79
To solve this problem, you should open /config.php and add a definition for HTTP_IMAGE on the top of the file, so that finally the file would look like: