I should apologise, I didn?t mean to sound abrupt or offended at all.
And it indeed is not the correct way to greet new friends...
So first, welcome to STG.
We?re happy to have you join us.
My post was an attempt to to help you out there, as I know you created the script to try and make a process easier on you. We were pointing out that there are easier ways to go about clearing cache and/or configuring your board so that the cache-clearing process is not so difficult, which I take it was the motivation for the script and thus the topic as well.
This is, of course great to see, it?s how all good scripts come about.
However, we didn?t want to make it seem difficult for other users who came across this topic and believe they would have to use the script to easily clear the cache.
So to recap, you could configure your board to be a little easier on yourself for MODing and Templating.
If you login to your ACP and click on Load Settings, there is an option to change the recompile stale templates to on, this effectively allows the system to scan the template files for a changed filetime, (modified), if a file is modified, it is reloaded into the cache and the cache file replaced, so this means you won?t have to refresh your templates and/or themes when making changes.
For other duties, inputting $cache->purge(); temporarily could save you some time if you have to continuously refresh your MOD. Alternatively, there is the Purge Cache button on the main Admin Index page.
Apologies for the confusion, we?re just trying to help each-other out.