Title: Enable Dynamic Caching Question
Last modified: April 6, 2026

---

# Enable Dynamic Caching Question

 *  Resolved [wyclef](https://wordpress.org/support/users/wyclef/)
 * (@wyclef)
 * [2 months ago](https://wordpress.org/support/topic/enable-dynamic-caching-question/)
 * Hi, after I enable dynamic caching how do I designate the part of my codebase
   I would like to remain dynamic?

Viewing 1 replies (of 1 total)

 *  [Jeff (a11n)](https://wordpress.org/support/users/jmills38/)
 * (@jmills38)
 * [1 month, 4 weeks ago](https://wordpress.org/support/topic/enable-dynamic-caching-question/#post-18879145)
 * Hi [@wyclef](https://wordpress.org/support/users/wyclef/),
 * The Partial Page Caching guide covers exactly this: [https://developer.jetpack.com/docs/customization/wp-super-cache/wp-super-cache-partial-page-caching/](https://developer.jetpack.com/docs/customization/wp-super-cache/wp-super-cache-partial-page-caching/)
 * The short version: you enable “Enable dynamic caching” and “Late init” on the
   Advanced Settings page, then add a secret placeholder string in your template
   where you want dynamic content to appear. You write a small plugin that hooks
   into the `wpsc_cachedata` filter to replace that placeholder with your dynamic
   content when the cached page is served.
 * There’s also a working example plugin bundled with WP Super Cache that you can
   reference: [https://github.com/Automattic/wp-super-cache/blob/master/plugins/dynamic-cache-test.php](https://github.com/Automattic/wp-super-cache/blob/master/plugins/dynamic-cache-test.php)
 * One thing to note: this only works with PHP or Simple caching mode, not mod_rewrite
   mode. And if JavaScript is an option for your use case, that’s the simpler approach
   since it works with all caching modes.
 * Please let us know if you have any questions. Thanks!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fenable-dynamic-caching-question%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeff (a11n)](https://wordpress.org/support/users/jmills38/)
 * Last activity: [1 month, 4 weeks ago](https://wordpress.org/support/topic/enable-dynamic-caching-question/#post-18879145)
 * Status: resolved