mfunc not working – PgCache.php not running wp-config.php?
-
I’m trying to get mfunc to work. So, I have set a value for “W3TC_DYNAMIC_SECURITY” in wp-config.php.
However, I’ve discovered that the PgCache.php does not get a value for “W3TC_DYNAMIC_SECURITY”, so it thinks all cached pages are non-dynamic, and __parse_dynamic() always returns without trying to replace dynamic code.It appears that wp-config.php isn’t being loaded each time PgCache is called — my testing output log shows this —?so that’s why mfunc just won’t work!
If I add
define('W3TC_DYNAMIC_SECURITY', 'mySecretCode');
inside of the _parse_dynamic() function in PgCache.php, my ‘mfunc’ code works.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘mfunc not working – PgCache.php not running wp-config.php?’ is closed to new replies.