how to use mfunc cache exclusion within a block or shortcode or function
-
My pages are built via Gutenberg blocks. I have used shortcode blocks and need to cache my pages, except blocks where I’m pulling in stock prices and announcements. these are embedded in the content via Gutenberg shortcode blocks.
I was able to exclude a shortcode block in the header template like so:
<!–mfunc myprivatekey –>
echo do_shortcode(‘some_shorty’);
<!–/mfunc myprivatekey –>but I can’t figure out how to do this from inside actions and shortcodes in my functions file. whenever I try, the page just dies. anyone got any ideas?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘how to use mfunc cache exclusion within a block or shortcode or function’ is closed to new replies.