Thought I would share a top tip for developers/theme editors if you weren't aware already. You can turn off Opencart cache.
When in the dashboard after logging in, hit the gear icon top right of the page and turn both cache's off.
Took a while for me to find this so hopefully it helps someone.
I found this article helpful: https://webocreation.com/blog/opencart- ... loper-tips
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
It clears the caches.
Code: Select all
/* reset_cache() deletes theme cache only */
/* reset_cache('all') deletes theme and file caches */
function reset_cache ($scope = 'theme') {
// delete theme cache files
$directories = glob(DIR_CACHE . '*', GLOB_ONLYDIR);
if ($directories) {
foreach ($directories as $directory) {
$files = glob($directory . '/*');
foreach ($files as $file) {
if (is_file($file)) unlink($file);
}
if (is_dir($directory)) rmdir($directory);
}
}
// delete normal cache files (categories, filters, etc
if ($scope == 'all') {
$files = glob(DIR_CACHE . '*.*');
foreach ($files as $file) {
if (is_file($file)) unlink($file);
}
}
}
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Then again I am a novice on SASS.
In any event, the dashboard cache control panel does not have a button to clear the filters, catalog, language, currency, etc. cache files.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Hopefully not. Otherwise, it would be unthinkable on the mount of extensions unrelated to those events that would be affected.In any event, the dashboard cache control panel does not have a button to clear the filters, catalog, language, currency, etc. cache files.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Users browsing this forum: halfhope and 510 guests