Created
November 20, 2012 11:38
-
-
Save svandragt/4117437 to your computer and use it in GitHub Desktop.
How to cache silverstripe menu's for live environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// limit caching to test + live environment and "Published stage" only | |
if (Director::isDev() || Versioned::current_stage() !== 'Live') SS_Cache::set_cache_lifetime('any', -1, 100); |
Yes confirm this is a fix to the problem where draft content gets cached into the live site.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
untested!