• Resolved richard50

    (@richard50)


    Please can you direct me to the PHP code I need to use to call “Clear Pods Cache”? i.e. what happens when I click the button on the Pods Settings page.

    Every week or so, we need to clear the cache because the Search and permalinks stop working. I would like to automate the clear cache every day to keep the site running.

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Have you previously reported the issue with your search/permalinks? I’d love to help solve those underlying issues too.

    For clearing the Pods cache, you can call pods_api()->cache_flush_pods();

    Thread Starter richard50

    (@richard50)

    Thank you very much for the code.

    Yes, I reported the issue with search and permalinks here:
    https://ww.wp.xz.cn/support/topic/need-to-clear-pods-cache-often/

    But I have found it hard to know how to track down the issue. Once the caches have been cleared, the problem doesn’t occur again until a week or so later. So it’s not something that is easily reproducible.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Clear Pods Cache Programmatically’ is closed to new replies.