Exclude certain block from caching using Fragment Caching – doesn’t work [closed]
From the source: Here (source) is the mfunc part in the 0.9.2.9 version of the W3TC plugin where the regular expression is: $buffer = preg_replace_callback(‘~<!–\s*mfunc\s*’ . W3TC_DYNAMIC_SECURITY . ‘(.*)–>(.*)<!–\s*/mfunc\s*’ . W3TC_DYNAMIC_SECURITY . ‘\s*–>~Uis’, array( &$this, ‘_parse_dynamic_mfunc’ ), $buffer); From this it looks like the setup should be <!– mfunc W3TC_DYNAMIC_SECURITY code1–> code2 <!– /mfunc W3TC_DYNAMIC_SECURITY … Read more