Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Raam Dev

    (@raamdev)

    If you’re using “Unfriendly permalinks” (e.g., /?page_id=5 instead of /example-page/), then by default only the home page will be cached. If you want to cache all pages when using unfriendly permalinks, you’ll need to explicitly say so in the plugin options. See Caching Enabled for GET (Query String) Requests? in the plugin options.

    If you’re not using Unfriendly Permalinks and you only want to cache the home page, you can add the following to the top of your theme’s header.php file:

    if ( ! is_home() && ! is_front_page() ) {
        define('DONOTCACHEPAGE', true);
    }
    Thread Starter vlad185

    (@vlad185)

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Caching only home page.’ is closed to new replies.