0
votes

How to disable cache for a snippet?

here is my code

chunk -

[[!get_homepage? &file=/customSnippets/homepage.php]]

get_homepage snippet

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

1
Weird. Adding the ! should make it an uncached snippet. Can you make your 'chunk' an uncached snippet and see what happens? - MeltingDog

1 Answers

0
votes
[[!get_homepage? &file='[[!homePageSnippet]]']]

Dont call a file, use snippet uncached !