Home > Backend Development > PHP Tutorial > How to Clear OpenCart 3 System Cache for Modification Changes?

How to Clear OpenCart 3 System Cache for Modification Changes?

Barbara Streisand
Release: 2024-11-09 15:44:02
Original
343 people have browsed it

How to Clear OpenCart 3 System Cache for Modification Changes?

OpenCart 3 System Cache Cleaning for Modifications

When making changes to OpenCart 3, it's crucial to ensure that the changes are reflected after clearing cache. One particular issue arises when making changes to the product details page controller (catalog/controller/product/product.php) but they don't appear.

Ocmod and Twig Cache

This issue stems from two types of caches: ocmod cache and twig cache. Ocmod cache stores system modifications made through ocmod extensions, while twig cache speeds up page rendering by caching compiled templates. When you make changes to the PHP file, these caches might prevent the changes from taking effect.

Clearing Ocmod Cache

To clear the ocmod cache from the admin panel, navigate to Extensions > Modifications. Click the reload button in the top right corner to refresh the cache.

Clearing Twig Cache

To clear the twig cache, access the admin dashboard and click the gear button in the top right corner. From the drop-down menu, select "Clear Twig Cache" to remove the cached templates.

Restart Server

In some cases, restarting the web server can also be necessary to ensure that the changes are applied. This will clear any residual cache that might be preventing the changes from being displayed.

By following these steps, you can effectively clear the ocmod and twig caches and ensure that your modifications to the controller are reflected in the product details page. Remember to always clear cache and restart the server after making code changes to avoid discrepancies.

The above is the detailed content of How to Clear OpenCart 3 System Cache for Modification Changes?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template