Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Using this awesome module to import an XML feed usig the XPATH parser. iN the content it is uploading images. however after the upload the cache needs to be cleared for the images to be shown. Is there a way i can flush the cache after the upload is completed. Which function deals with the upload/checks when all items have been parsed??
Thanks.
Comments
Comment #1
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedTo flush caches after import has been completed, implement
hook_feeds_after_import()
in a custom module. In there, calldrupal_flush_all_caches()
to clear all caches. To save performance, you could also lookup which cache to flush exactly for the images to be refreshed. I'm don't know how your images are cached, so cannot help you with that.Example: