Title: Cache preload
Last modified: November 19, 2020

---

# Cache preload

 *  Resolved [pawkat](https://wordpress.org/support/users/pawkat/)
 * (@pawkat)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/)
 * Hello, I have enabled the “cache preload” option and would like to know which
   pages are currently cached. Is there a log file for this, or something else? 
   Could you help me with this?

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13683195)
 * Hello [@pawkat](https://wordpress.org/support/users/pawkat/)
 * Thank you for your inquiry and I am happy to assist you with this.
    The only 
   way is to use Statistics, which is available after the upgrade, and see the cache
   hits, or checking the wp-content/cache/page_enhanced/ and check which pages are
   cached. As logging is available in wp cli, I suggest that instead of calling 
   wp cron via crontab – you should call it directly via `wp w3-total-cache pgcache_prime`
   and track the output which pages/sitemap positions are primed by script. Thanks!
 *  Thread Starter [pawkat](https://wordpress.org/support/users/pawkat/)
 * (@pawkat)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13687883)
 * So if I run this command I will see which pages are cached??
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13688158)
 * Hello [@pawkat](https://wordpress.org/support/users/pawkat/)
 * That is correct.
    Please check this topic for reference [https://wordpress.org/support/topic/cache-preload-for-query-strings-not-working/#post-13640414](https://wordpress.org/support/topic/cache-preload-for-query-strings-not-working/#post-13640414)
   Thanks!
 *  Thread Starter [pawkat](https://wordpress.org/support/users/pawkat/)
 * (@pawkat)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13688218)
 * [@vmarko](https://wordpress.org/support/users/vmarko/) thankyou, I will check
   it
 *  Thread Starter [pawkat](https://wordpress.org/support/users/pawkat/)
 * (@pawkat)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13688560)
 * [@vmarko](https://wordpress.org/support/users/vmarko/) I have an error but it
   said that PageCache Priming triggered successfully.
 * run command result:
    ~/apps/wordpress/htdocs$ wp w3-total-cache pgcache_prime
   PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTO in phar:///opt/bitnami/apps/
   wordpress/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1198) : 
   eval()’d code on line 97 Priming from sitemap /sitemap.xml entries 1..500 Success:
   PageCache Priming triggered successfully.
 * Please look at this code
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13689281)
 * Hello [@pawkat](https://wordpress.org/support/users/pawkat/)
 * Thank youj for the info.
    The PHP notice is not related to the Actual priming
   but with the CLI runner Please check more info on this [link](https://randomadult.com/fix-undefined-index-http_x_forwarded_proto-with-wp-cli/).
   Thanks!
 *  Thread Starter [pawkat](https://wordpress.org/support/users/pawkat/)
 * (@pawkat)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13697273)
 * Hello [@vmarko](https://wordpress.org/support/users/vmarko/) this helped, already
   I have not an error.
    But I still can not see the list of the pages that already
   cached.
 *     ```
       $ wp w3-total-cache pgcache_prime
       Priming from sitemap /sitemap.xml entries 1..500
       Success: PageCache Priming triggered successfully.
       ```
   
    -  This reply was modified 5 years, 5 months ago by [pawkat](https://wordpress.org/support/users/pawkat/).
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13699216)
 * Hello [@pawkat](https://wordpress.org/support/users/pawkat/)
 * It should list the URLs that are being primed.
    Please check this [link](https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-log/)
   about WP_CLI::log() Thanks!
 *  Thread Starter [pawkat](https://wordpress.org/support/users/pawkat/)
 * (@pawkat)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13701946)
 * Hello [@vmarko](https://wordpress.org/support/users/vmarko/).
    As far as I understand,
   the log callback parameter is not passed ([https://prnt.sc/vp0bvf](https://prnt.sc/vp0bvf)),
   since the log success are executed and another log is executed ([https://prnt.sc/vp0dhs](https://prnt.sc/vp0dhs)).
   I don’t understand how to make the page log output, I think it’s him ([https://prnt.sc/vp0e7f](https://prnt.sc/vp0e7f))
 *  Thread Starter [pawkat](https://wordpress.org/support/users/pawkat/)
 * (@pawkat)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13711319)
 * Hello [@vmarko](https://wordpress.org/support/users/vmarko/).
    Could you help
   me with this issue?

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

The topic ‘Cache preload’ is closed to new replies.

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

## Tags

 * [Cache preload](https://wordpress.org/support/topic-tag/cache-preload/)
 * [cached pages](https://wordpress.org/support/topic-tag/cached-pages/)
 * [Logs](https://wordpress.org/support/topic-tag/logs/)

 * 10 replies
 * 2 participants
 * Last reply from: [pawkat](https://wordpress.org/support/users/pawkat/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/cache-preload-10/#post-13711319)
 * Status: resolved