2.13.4.11. Clearing the cache in OpenCart
There are several types of cache in OpenCart, each of which can be cleared using the appropriate instruction:
Clearing the cache is useful in situations when the changes made on the site are not visible or there are problems with displaying content due to the cache.
Cleaning VQMod
To clear VQMod, you need to delete the file mods.cache
and files from directory cache
:
- Go to the directory
/vqmod
located in root directory of the site, by using filemanager or any FTPclient. - Delete the file
mods.cache
. - Go to the directory
cache
and delete all files.
Cleaning OCMod
To clean OCMod, you need to delete files from the directory /system/modification
:
- Go to the directory
/system/modification
or/system/storage/modification
(depending on version) located in root directory of the site, by using filemanager or any FTPclient (the full path will look something like this:example.com/www/system/modification
). - Delete all files from open directory
modification
. - In the latest versions, you also need to adminpanels site go to section "Supplements → Modifications" and click on the clear cache button:
Clearing the image cache
To clear the image cache, you need to delete all files from the directory /image/cache
.
Clearing the system cache
To clear the system cache, you need to delete all files from the directory /system/cache
.
Automatic cache clearing
V adminpanels Latest versions of OpenCart, you can clear the style and theme cache using the built-in functionality. To do this, follow these steps: