Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @michael8888

    Thank you for reaching out and I am happy to assist you with this.
    Can you please clarify what you are trying to achieve?
    DO you want only to add specific pages to Cache while excluding the other pages or do you want to preload the cache?
    Thanks!

    Thread Starter Michael

    (@michael8888)

    I want to preload the cache with a couple of specific pages. We have more than 10 thousand pages, so priming the cache won’t help.

    We have a few pages with very expensive SQL queries which we cache with our own solution at scheduled times. I want to add those pages to the W3TC cache right after our cache has been created. So I just need a W3TC function that I can feed with the corresponding page IDs.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @michael8888

    Thank you for the clarification.
    Unfortunately, there is no function that can do that in W3 Total Cache. The only way to achieve this is to use Cache Preload, and feed W3 Total Cache with a custom sitemap that contains the specific pages you want to preload.
    Thanks!

    Thread Starter Michael

    (@michael8888)

    Hi Marko,

    using a custom sitemap would mean we can’t preload all other pages. Besides, I need to make sure that those pages are rebuilt at specific times under specific conditions.

    I already found a solution. We essentially use wget to load those pages after our own cache has been created. This little trick saved us about 50% CPU load.

    You might want to add features to W3TC to manage pages that require lots of CPU power to be created but only have to be updated once a day or so. Caching seems to be the natural solution to this problem. I guess we are not the only ones having this problem.

    Thanks for your help!
    Michael

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @michael8888

    Thank you for the information and I am glad you managed to find the solution.
    I’ll make sure to check this more and bring this to a discussion.
    Thank you for your suggestion.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Function to add particular page to cache’ is closed to new replies.