Hi Guys,
How do u turn off caching for snippets. I am using snippets to call php files and the cache is always showing the old version of the file on update. I end up having to clear the System cache each time.
Is there another way to call templates apart from php embeds in snippets? I want to be able to work on files directly in Dreamweaver instead of editing in the control panel.
Thanks
Apache/2.2.11 (Unix) , php 5, mysql 5, modx rev 2.0.8
-
☆ A M B ☆
- 24,524 Posts
Once your snippet code is final, you might want to remove the uncached tag and let it be cached to speed up page views.
Hi it does not really work for me
chunk -
[[!get_homepage? &file=`/customSnippets/homepage.php`]]
get_homepage snippet
<?php
return include $modx->getOption('base_path').$file;
it returns same content when I use different browse. (I did some browser check in /customSnippets/homepage.php file)
any idea?
thanks
Could the data used by the file to create its output be coming from the cache?