WP Super Cache
[resolved] How do I "[cache] the newest"? (4 posts)

  1. rayfusci
    Posted 4 years ago #

    WPSC version

    On the "Preload" page it says:
    "Caching is done from the newest post to the oldest so please consider only caching the newest if you have lots (10,000+) of posts. This is especially important on shared hosting."

    Okay, I'm convinced. How do I do this (without messing with the code)?

    If I do a view source on this page, there's a likely looking parameter called "posts_to_cache" which is set to my total number of posts. Seems to me if I could get to this parameter, I could fill in a value less than this number and have that many latest posts cached, but I can't, it's input type is "hidden".

  2. Donncha O Caoimh
    Plugin Author

    Posted 4 years ago #

    That hidden field is only shown when you have less than 1,000 posts I think. Why would you want to only cache the newest? The majority of your posts will be visited by Google so it makes sense that they all be served as quickly as possible!

  3. rayfusci
    Posted 4 years ago #

    Here's my reason.

    I'm on a shared hosting service. My webzine gets maybe 50,000 hits a month, but being a webzine, virtually all the action is on the newest posts, the very newest of which get updated.

    My hosting service has already put me in the penalty box once and threatened to disconnect me because I was using "too much" CPU. (Of course, they wouldn't tell me how much I was using or how much "too much" was.) WPSC helped here by making it way less expensive to display a post.

    So for me, preloading/refreshing everything doesn't appear to make sense, as the great majority won't be hit. And until I can get off the shared hosting service, I don't want to take any chances of being put back in the penalty box.

    From your hint above, I tweaked your code to lower the display threshold, and the granularity of how many to preload.

  4. Donncha O Caoimh
    Plugin Author

    Posted 4 years ago #

    I've just changed this in trunk. Limit reduced to 100 from 1000, and the step increased to 10 from 5.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic