• Resolved Alexanderine

    (@alexanderine)


    Hi,
    I’m new to this and I would like to keep the cache on disk say for 1 month, what should I do to achieve this.

    For example I only write a post every day, so I don’t have to purge the cache automatically every 1 hour and have the server prime load everything all over again.

    I don’t understand how this works, I just want the cache to stay on disk until otherwise it’s changed then it could get overwritten or updated.

    Can you please guide me on the best practice to keep the cache on disk and avoid server intensive tasks of prime caching.

    Thank you

    • This topic was modified 4 years, 10 months ago by Alexanderine.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alexanderine

    Thank you for your inquiry and I am happy to assist you with this.
    The TTL of page cache files is set via the “Expires header lifetime” field in the “HTML” section on the Browser Cache Settings tab. One month should be around 2630000s.
    Once the cache is purged and the page is visited the cache is generated.
    You can also change the Garbage collection interval: in Performance>Page Cache>Advanced.
    With Garbage collection interval: If caching to disk, you can specify how frequently expired cache data is removed. For busy sites, a lower value is best.
    If you wish the expired cache data to be removed after one month you should adjust the value.
    Thank you!

    Thread Starter Alexanderine

    (@alexanderine)

    Thank you
    I will become a premium member once i migrate from the staging environment ??

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alexanderine

    You are most welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cache life time’ is closed to new replies.