Tools: change clearSmartyCache to use native clear

When using not file based cache the function is not working.
Merge pull request #1547 from natrim/patch-1

[*] CORE: change clearSmartyCache to use native clear