No, this function would just trigger the "clearing function" of the cache plugin that is installed.
I must stress this, it would trigger if and only if the plugin hooked into the function. All plugins would need to be edited to do so.
Which is why I think it's a nice idea that wouldn't work as well as it should :(