Disable AJAX response cache


i have a problem with Comet Cache and a page with Visual Composer and Media Grid.

Media Grid make an ajax call to load the images … at first it works but stops working after 1 day. The page loads but without content and if I open the ajax response, is empty.

How can I solve? Thanks.

@boombari We have a GitHub issue open for compatibility with Visual Composer Post Grid. The lead developer of that plugin suggested using the following filter:


Does that help?

Seems work after 24h of cache! Thanks!


I’m having this same problem. Can you tell me where you’re adding the filter?


in functions.php

Thank you @boombari!