• iWPer

    (@iwordpresser)


    Hi all,

    Is it possible to always serve supercache files, including the homepage? And then preferably clear and preload all files when a post is being created/updated.

    This is for a mostly static website with few updates. These static supercache pages may also be served to known/logged-in users.

    Thanks

    https://www.ads-software.com/plugins/wp-super-cache/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Is it possible to always serve supercache files, including the homepage?

    Under the Advanced tab you con exclude/include page types, also “Home”. Not sure if this applies also for the preloaded cache, but why shouldn’t it.

    And then preferably clear and preload all files when a post is being created/updated.

    There’s a checkbox “Clear all cache files when a post or page is published or updated”.

    This is for a mostly static website with few updates.

    Have you tried it with a very long preload interval? (Though I have the impression that the preload timer acts a bit weird, i.e. it seems as if the set interval wasn’t always respected.)

    These static supercache pages may also be served to known/logged-in users.

    You’ve seen the “Make known users anonymous so they’re served supercached static files.” option, I guess.

    Tom

    Thread Starter iWPer

    (@iwordpresser)

    Hi,

    Thanks for your reply.

    I have seen the option to exclude files, but somehow missed the option to include them.
    I just tried it but did not get it to supernate the homepage.

    I knew about the clear all cache pages but was unsure if this would also clear the supercache. I had an issue with this before and am not sure if I then had it enabled or not.

    I have a daily preload interval. This should be long enough and prevent possible issues from lasting longer than a day; unless it is caused by something else of course.

    I knew this option; just figured it might be helpful to mention.

    Thanks again for your clear instructions. Any clue on how to get the homepage to supercache?
    I did find the rule which causes this “issue” (for my situation) but changing it in the plugin files is not very helpful because it will be overwritten on every update of the plugin.

    Thread Starter iWPer

    (@iwordpresser)

    Anyone know the “filename” to add to –“Add here those filenames that can be cached, even if they match one of the rejected substring specified above.”– to force the homepage to be supercached?

    Any alternative method to accomplish the same is very welcome.

    Thanks

    If you browse to your site and display the source, you should see something like this at the very bottom:

    <!-- Dynamic page generated in 1.077 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2015-06-22 07:23:54 -->
    
    <!-- Compression = gzip -->

    What do you see instead?

    Thread Starter iWPer

    (@iwordpresser)

    Thank you!

    I had to enable this function first, to see the lines you mentioned.

    On the homepage it does not show anything like this.
    All other pages do show these lines, except for one, the contact-page.

    The homepage and the contact-page have one thing in common; both have a form which generate/fetch some user-data inside the HTML. This might very well be causing my issue.
    The user-data is not being used, so if the plugin would allow me, I could disable it.
    The plugin is PlanSo Forms Pro. I don’t see any option to disable the user-data fetching.
    Changing the plugins files is not a very feasible option, the plugin is updated quite regularly. Unregistering a function may help, but I don’t know what instructs WP Super Cache not to cache these pages, or does WP Super Cache detect the user-data requests and decides not to cache these pages? The lines don’t seem to be added using a separate function.

    Thanks

    I had to enable this function first, to see the lines you mentioned.

    Ah, yes, sorry. I forgot that it was an option.

    I’m not familiar with your Forms plugin or any similar. So it seems that I can’t help you. At least you know now that the issue is (probably) related to that plugin.

    What I would do in such cases, is…

    • browsing the support forums of similar form plugins. For example, posts like the last one in this thread may be helpful.
    • if not already done, cloning the production site to the (offline) localhost on your desktop computer. This way you can fiddle around with various options without interrupting your production site. (E.g. php caching instead of mod_rewrite caching, or other things in WPSC’s Advanced tab; trying another caching plugin or another forms plugin, etc.)
      For cloning you can use Duplicator, and if you don’t have Apache, MySQL, PHP running on your desktop you can easily set it up with AMPPS.

    best,
    Tom

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Always serve supercache files including homepage’ is closed to new replies.