• Hello Darren,

    I’m allowing people to post articles on my blog from the front office using wp_insert_post and the cache is not deleting when a new post or an update is done.

    Can you tell me how i can progammatically delete the cache or how to delete automatically the cache with wp_insert_post() / update_post_meta() ?

    Thank you,

    https://www.ads-software.com/plugins/ajax-load-more/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi Maniou,
    I guess that’s because it’s an admin function that clears the ALM cache.

    Is it possible to write a custom function that fires alm_delete_cache() on the admin side when your posts are published?

    Thread Starter Maniou

    (@maniou)

    Hi Darren,

    Thank you for you answer, I will try to fire alm_delete_cache() when a post is published / updated and I will let you know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Delete Cache Public Function’ is closed to new replies.