WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Preload specific URLs (6 posts)

  1. w3r3w0lf
    Member
    Posted 2 years ago #

    Hi

    I have a site with some archive pages that query multiple taxonomies to generate the displayed posts.

    I would like to be able to specify that some of these pages are preloaded into the cache. They all have permalinks.

    Thank you for any advice.

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    You could write a WordPress plugin that requests those pages when a certain action is taken (say a post is made) or use a cronjob to fetch them.

    Preloading simply calls the page like a logged out browser would and the plugin caches it.

  3. w3r3w0lf
    Member
    Posted 2 years ago #

    so for example, a cronjob that executes a script that loads the page via cURL?

  4. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Yeah. Exactly!

  5. Gary LaPointe
    Member
    Posted 2 years ago #

    @w3r3w0lf
    I've been thinking of the same think. What did you ever decide to do for this?

    I know what my 10 most popular pages are so I thought of manually coding them just so they're never slow, I'm not concerned with speed.

    And sometimes I see that the page is in the WP-Cache AND the WP-Super-Cache: It seems like some browsers get one and others get another (I can open in several different browsers and get several different creation times).

    (And does it store a different copy for serving up compressed copies? If so, how to create that too).

    Gary

  6. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Gary - if someone leaves a comment they gets a wp-cache file, or if you're logged in it's a wp-cache file (ie. a "known user").
    It stores an index.html.gz as well as index.html file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic