• Resolved danrancan

    (@danrancan)


    Hey, so on my server and wordpress installation, I have Redis and Redis Object Caching enabled. I’m wondering exactly how this plugin preloads the cache. Like, does it do a wget -m -p -E -k -P /tmp/ramdisk/ https://danran.rocks to preload the cache? I am wondering because I want to know if this plugins method of preloading would also preload the Redis Object Cache?

    If it doesn’t preload Redis Cache by default, but could be able to by modifying settings or the plugin code itself, do you think you could provide detailed instructions on how to do so? I want to be sure that all of my cacheing (redis, FastCGI, etc) gets preloaded at the same time. Thanks for any help!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @danrancan, you can easily observe the interaction between NPP Preload and Redis Object Caching through a simple test procedure.

    • Flush the object cache !
    • Purge Nginx Cache via NPP !
    • Snapshot the keyspaces.
    • Preload Nginx cache via NPP.
    • After the Preload is complete, check the keyspaces again.

    Before running the NPP Preload:

    redis-cli info keyspace
    db0:keys=117,expires=52,avg_ttl=76402457,subexpiry=0

    After completing the NPP Preload:

    redis-cli info keyspace
    db0:keys=587,expires=101,avg_ttl=770621259,subexpiry=0

    The data shows that Redis Object Cache is indeed being warmed up during the NPP preload process. As wget requests pages and WordPress queries the database for posts, options, terms, or other dynamic data, Redis is caching those queries.

    You can also live-watch how Redis interacts with NPP during the Cache Preload via redis-cli monitor

    Best ~Hasan

    Thread Starter danrancan

    (@danrancan)

    Thank you very much for this descriptive answer. This is very helpful. I have one more question to follow up with.

    Would the “Exclude File Extensions” and “Exclude Endpoints” options affect what Redis Caches then? Should I be considering what Redis can cache inside of those options to be sure that Redis preloads as much as possible? Are there any other effects that these options may have on Redis caching that I should consider?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Does this preload anything else like Redis Object Cache?’ is closed to new replies.