Quote from: evan at May 10, 2007, 10:09 AM
See topic. Every time I update my included snippet code I have to manually clear the cache and that’s annoying.
Obviously I could make it an uncached call but I’ll want the thing to be cached in the future and I don’t want to have to remember to change it later.
@evan: Though I do this for all snippets because I prefer my php code on the file system, and not cached in the siteCache file, you can simply change your snippet to a one line return include() that includes your snippet code from a regular php file. This is great for development, and for production, has the added benefit of reducing the siteCache file size and/or allowing code changes to be tracked in SVN.
In 0.9.7, there will be a new constant (MODX_CACHE_DISABLED) that can be used to disable all caching for such purposes, in addition to several new caching options in general.