We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16901
    • 35 Posts
    I’ve got a question about working with PHP & MODx. I wasn’t quite sure where to post this... I apologize if I’ve posted in the wrong section.

    I’ve got a snippet with this in it:

    <?php require_once(’calendar/quick_calendar.php’); ?>

    Initially, the snippet works fine, but when I make changes to the quick_calendar.php file, the changes aren’t being
    reflected as I would expect. In fact, I tried deleting the quick_calendar.php file from the server, reloaded the site, and the site still functions as if the quick_calendar.php file was still present. I’ve never experienced this before and I don’t understand why it’s happening.

    My question is this: does this sound like some sort of server-side caching problem? Is that even a possibility? If so, do you know if there’s anything I can do within MODx (settings, etc.) to fix it? Or might there be a setting I can change in Plesk?

    Thanks for any help you might be able to provide.
      • 16901
      • 35 Posts
      Also, I can give these details if needed:

      http://modxcms.com/forums/index.php/topic,489.0.html

      I just thought that my question might be a general question and might not need all the specifics in order to be answered.
        • 27708 MODX Staff
        • 2,502 Posts
        Are you calling it like [!mysnippet!] or [[mysnippet]]? The former is the method that will call your snippet uncached.
          Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
          • 16901
          • 35 Posts
          Ah ha! Beautiful! That works perfectly!

          Thank you for your help. grin