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.
-
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