We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24278
    • 165 Posts
    Dear Members,

    Requirement: Need to show a random project on every page (document), therefore i use a randomising snippet.

    Now, for the snippet to generate a new project every time and not serve a cached project, do i need to make all my documents NOT cacheable (i.e. "Cacheable=NO" in "Page Settings"). Is this the right thing to do? or Is there another way to do this.

    BTW, the snippet is called in a chunk with place holders for output and placed on all website "templates" that serve the various documents of the website.

    Would like to thank you in advance for all your time and efforts.

    -raavi
    • Your pages can be cached. Just call your snippet via [!snippet-name!] and you’ll be fine. smiley
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 24278
        • 165 Posts
        Quote from: rthrash at Apr 27, 2006, 07:40 PM

        Your pages can be cached. Just call your snippet via [!snippet-name!] and you’ll be fine. smiley

        Thanks rthrash,

        It works!

        regards,

        -raavi