• Resolved futureyoon

    (@futureyoon)


    Hi

    I have set the maxmemory 2Gb, it gets fully utilized it seems. is there a way to auto refresh the cache in schedule basis like every 24hrs?

    or

    Other than refreshing the cache, is there any other settings that it can capture the new data (post or whichever datakey) in schedule or anytime it gets updated?

    Please advise me on this.

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    The cache will keep itself “fresh”. If you like to flush it every x hours, you can do that using wp_cache_flush().

    Ideally allocate more memory to Redis, so you can cache everything and key don’t flight for space.

    Thread Starter futureyoon

    (@futureyoon)

    Thank you for the info @tillkruess

    That leads me to next questions as below.

    What will happen if the memory gets full? it will wipe off the oldest data to clear up the space for the new incoming data?

    What I have experienced so far is that the system (site) gets freezed whenever it hits the max memory. that’s the reason of I am checking to clear the object cache in regular basis to avoid the site breakdown.

    Please advise me on this.

    Thank you

    Plugin Author Till Krüss

    (@tillkruess)

    What will happen if the memory gets full? it will wipe off the oldest data to clear up the space for the new incoming data?

    That depends on your configuration of Redis Server. You can set a maxmemory-policy in your redis.conf file to get Redis Server to evict old keys when memory nears maximum. Ideally tho, allocate more memory to Redis Server so it holds all cache data.

    Thread Starter futureyoon

    (@futureyoon)

    yes, I got that.

    I have set it volatile-lru, so i wud expect it clear the old dataset when the memory gets full, right?

    but it’s again making the site freezed from time to time with 2gb max memory.

    now I increased it to 4gb and monitor it.

    Either it works well or not, it proves that old data doesn’t get cleared off.

    any input wud be appreciated.

    Plugin Author Till Krüss

    (@tillkruess)

    Did you restart the Redis process after making changes to the redis.conf?

    Thread Starter futureyoon

    (@futureyoon)

    yes of course. Multiple times.

    Plugin Author Till Krüss

    (@tillkruess)

    What does your redis error log say after a freeze?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘automatic refresh the cache’ is closed to new replies.