Hi,
I added some geo location checking in a php file. however, it does not working on modx. It cached so hard.
here is the chunk -
[[!get_homepage]]
then the sinppet get_homepage -
<?php
$user = $_SERVER["REMOTE_ADDR"];
echo $user;
?>
it returns the same ip address, even we tested in different countries / vpn
Any idea?
Thanks
Keith
current modx version - MODX Revolution 2.2.14-pl (traditional)
[ed. note: keith_doctrinaire last edited this post 10 years, 4 months ago.]
Maybe you are using 2.4.3? which had an caching error when uncached snippets are inside cached chunks.
Just read the Version info...
But try to called the Chunk also uncached. But it shouldn`t behave like that. Maybe the error is just somewhere else.