Or maybe I can exclude the footer completely ?
if you do it, the cache does not work for all the pages.
don’t you know where the text exists?
Yes, the text exists in the footer. It’s a text field with a dynamic condition based on a parameter.
When the page url has a specific parameter the text field is hidden, but when it’s cached it’s always showing that is why I want to exclude it from cache.
How can I do that? Can I exclude its specific css class?
the solution is not excluding it. The solution is that loading the content via Ajax instead of PHP.
Also, the content appears 20 seconds after page load, and doing all that with Ajax… seems to me that excluding it from cache would be more convenient
you cannot exclude a part of a page because the pages are saved as a static html file when they are cached.