Tools: change clearSmartyCache to use native clear

When using not file based cache the function is not working.