Title: [Plugin: WP Super Cache] Manually Cache Pages
Last modified: August 20, 2016

---

# [Plugin: WP Super Cache] Manually Cache Pages

 *  Resolved [zombiitv](https://wordpress.org/support/users/zombiitv/)
 * (@zombiitv)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-manually-cache-pages/)
 * I just upgraded from 0.9.9 to 1.2.
 * When I visit a page, everything is cached like it is supposed to; however, I 
   have a custom script that I use to control what pages get cached and when. In
   this script I make the following call:
 * do_action( ‘gc_cache’, ‘rebuild’, ‘homepage’ );
 * I get this: <!– Page not cached by WP Super Cache. Blank Page. Check output buffer
   usage by plugins. –>
 * I have tried several variations on the URL but nothing is working. This worked
   fine in version 0.9.9, what changed?
 * In the debug log, I get a bunch of messages saying that the buffer is blank –
   looks like the do_action call is not loading the page.
 * Thanks
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [zombiitv](https://wordpress.org/support/users/zombiitv/)
 * (@zombiitv)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-manually-cache-pages/#post-3102582)
 * Total hack but this works. Instead of calling the action I’m just calling file_get_content(
   $url). This will load the page from cache if it’s already built or build a new
   one if it isn’t (just like if you visited the page), if you want it to replace
   an old page, you’ll need to call prune first. I.E.
 *     ```
       prune_super_cache( $cache_path . 'supercache/' . $postURL . 'index.html', true, true );
       prune_super_cache( $cache_path . 'supercache/' . $postURL . 'index.html.gz', true, true );
       file_get_contents($postURL);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP Super Cache] Manually Cache Pages’ is closed to new replies.

 * ![](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/)

## Tags

 * [manual](https://wordpress.org/support/topic-tag/manual/)

 * 1 reply
 * 1 participant
 * Last reply from: [zombiitv](https://wordpress.org/support/users/zombiitv/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-manually-cache-pages/#post-3102582)
 * Status: resolved