Cloned from launchpad blueprint https://blueprints.launchpad.net/ironic/+spec/cleanup-all-imagecaches.
The cleanup method for cleaning up ImageCache (or its subclasses) _cleanup_caches_if_required`` is situated inside pxe driver. Hence, any other subclass of ImageCache situated in any other file, cannot use this cleanup method.
Specification URL (additional information):
This bug has been closed as a part of the RHEL-OSP 6 general availability release. For details, see https://rhn.redhat.com/errata/rhel7-rhos-6-errata.html