I am working on modifications of some templates... Sadly I always have to clear the template cache on the admin page "modifications" for every single template change. Is there a way to temporarily disable the caching completely?
VqMod-generated Content, and/or then as OcMod generated Content. Or then, you'll have to switch those
Routines off, to work with, what the default Code produces. It's as easy as that.
To only mention those two 'Routines', other Cache-Extensions exist as well, like Category/Page
Caching Mod's, doing their own things.And when it comes to Theme Extensions like Journal, or
speed-up Mod's like NITRO, they have/use their own Caching-Techniques. Just to mention this too...
One good reason, to create something like shown on the image below, to only require one Admin
Page, to kill everything, without the need, to call multiple Sections, to clear out a system, over&over again.
tweaks_cache_remover.jpg (80.67 KiB) Viewed 2095 times
the REPLACEMENT Code/File has to be stored/cached somewhere, to be called, instead
of the DEFAULT Code, in order to function.
is this so hard to understand ?
These cache files are in system/storage/modification/
...and you can also add your .ocmod.xml in the system root so it takes without installing it first.
Remember to rename it to install.xml when you wrap it up in an installer
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: I moved on to Laravel
Yes, this is exactly one reason why many developers (like myself) only use vQmod instead of ocMod. It's too much of a pain to work with and debug. Hopefully Daniel will add an option like this into the core in the future, or if developers are forced to move to ocMod for 3.0 like it seems like they will be, I'll see about creating a mod that does this.
If you want to try creating one yourself, it looks like the refresh() method in /admin/controller/extension/modification.php is the one that triggers this. You could access it by using a URL like this, though it wouldn't work without having an admin token in the URL:
www.yourdomain.com/index.php?route=exte ... on/refresh
If you can't figure out how to get a token in the URL when you access it, you could copy that code somewhere else so it's loaded on every page load.
Users browsing this forum: No registered users and 26 guests