We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8643
    • 271 Posts
    In System Settings:

    • Expiration Time for Default Cache,
      Expiration Time for Partial Resource Cache,
      Expiration Time for DB Cache,
      Expiration Time for JSON Cache
    by default is set to zero seconds.
    How does caching work in this case?
    Cache file is created each time and don’t used or something else?
      • 28215
      • 4,149 Posts
      Quote from: elastic at Jul 29, 2010, 01:16 PM

      by default is set to zero seconds.
      How does caching work in this case?
      Cache file is created each time and don’t used or something else?

      Caching in the case of 0 means that the cache file remains until it is cleared, which can happen when:

      - The Resource/Setting/Element/etc is saved
      - The cache is manually cleared by a user or script
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 12410
        • 353 Posts
        revo 2.3.0
        PHP Version 5.3.28

        hmmm unless I'm going crazy it appears my resources don't stay cached until cleared as the 0 would suggest in Expiration Time for Default Cache setting. I come back days later and what was cached no longer is. I can see by the number of queries being created using below code. Also I can edit a resource, see the update and when I go back 5 mins later the webpage has reverted to a different version of the page i.e. with some code omitted. Maybe its to do with using the IF extra uncached?

        <meta name="generator" content="Query time: [^qt^] ([^q^] Queries) // Parse time: [^p^] // Total time: [^t^] // Source: [^s^]">