WordPress.org

Ready to get started?Download WordPress

Forums

Quick Cache (Speed Without Compromise)
[resolved] Dependent cached pages not updating (7 posts)

  1. saintandrews
    Member
    Posted 4 months ago #

    Once I got QC up and running it's now performing beautifully, but now there seems to be a problem with dependent user/author pages not updating when their authors create a new post.

    For example, the latest post on my front page right now is "A Tail" by author "Chickens Consigliere". Her post count on the front page right now is 19, reflecting her most recent post. But if you click on her author page link on the post itself, you're served her cached author page prior to that post showing a post count of only 18.

    My site is http://www.aleksandreia.com

    I'm presuming my choices to update her author page at this point are either to wait until the whole cache cycles (currently 7 days) or else to dump the entire cache and start over.

    Is there any way to exempt a certain class of posts or pages, eg in this case my authors' pages, from caching so that only fresh copies are served?

    Thanks.

    Like I said, otherwise the speed gains are impressive; I've been waiting 2 years for this plugin.

    https://wordpress.org/plugins/quick-cache/

  2. Raam Dev
    Member
    Plugin Author

    Posted 4 months ago #

    Hi saintandrews,

    You have two options here:

    1) You can use the URI Exclusion Patterns feature (available with Quick Cache Pro) to exclude author pages from being cached (e.g., /author/).

    2) You could write some custom code that dynamically clears the cache whenever a new post is published. You could also get more elaborate with this custom code so that it only clears the author page cache for the author publishing the post. This would require knowledge of PHP and would require reverse engineering the code that generates the cache files (so that you know which cache file to delete). All of the Quick Cache source code is freely available, so a knowledgeable PHP programmer shouldn't have too much trouble accomplishing this.

    This particular scenario could definitely use some more work in regards to being handled properly by Quick Cache. I'd love if you could open a feature request to "Clear author page cache when publishing new post". If you can do that, I'll add this to my TODO list.

  3. saintandrews
    Member
    Posted 4 months ago #

    This particular scenario could definitely use some more work in regards to being handled properly by Quick Cache. I'd love if you could open a feature request to "Clear author page cache when publishing new post". If you can do that, I'll add this to my TODO list.

    Done and done.

  4. Raam Dev
    Member
    Plugin Author

    Posted 4 months ago #

    Thank you! :)

  5. saintandrews
    Member
    Posted 4 months ago #

    Not at all.

    The pages of the users who make the posts in WordPress are so integral to the posts made in WordPress, at least from an external, practical standpoint, that it's hard to conceive of software not handling them simultaneously, in this case, clearing post and user page of the poster caches simultaneously.

    Until this is remedied, I would have to score this lack as a bit of a compromise.

  6. Raam Dev
    Member
    Plugin Author

    Posted 4 months ago #

    I agree and I'll get this remedied in the next update.

  7. Raam Dev
    Member
    Plugin Author

    Posted 1 month ago #

    Hello,

    The latest version of Quick Cache (v140605) includes several new features that improve how Category/Tag/Author and other archive views associated with a post are cleared when a Post is published:

    New Feature: Auto-Purge "Author Page". When a single Post/Page is changed in some way, Quick Cache can also purge any existing cache files for the associated Author Page. See Dashboard -> Quick Cache -> Plugin Options -> Clearing the Cache. (This option is enabled by default; disabling this requires Quick Cache Pro.)
    New Feature: Auto-Purge "Category Archives". When a single Post/Page is changed in some way, Quick Cache can also purge any existing cache files for the associated Category archive views. See Dashboard -> Quick Cache -> Plugin Options -> Clearing the Cache. (This option is enabled by default; disabling this requires Quick Cache Pro.)
    New Feature: Auto-Purge "Tag Archives". When a single Post/Page is changed in some way, Quick Cache can also purge any existing cache files for the associated Tag archive views. See Dashboard -> Quick Cache -> Plugin Options -> Clearing the Cache. (This option is enabled by default; disabling this requires Quick Cache Pro.)
    New Feature: Auto-Purge "Custom Term Archives". When a single Post/Page is changed in some way, Quick Cache can also purge any custom Terms that may have their own Term archive views. See Dashboard -> Quick Cache -> Plugin Options -> Clearing the Cache. (This option is enabled by default; disabling this requires Quick Cache Pro.)

    See also: v140605 changelog.

Reply

You must log in to post.

About this Plugin

About this Topic