okay, so here is a quick example of code in a template, page.php, file:
<?php print_r(getdate ()); ?>
Website is setup with WPEngine. When logged in (into wordpress) works 100% and date/time changes every refresh. When logged out, it "procs" on the first visit, and stays on the same date/time for every user, no matter how many times you refresh. The only way to "update the clock" is to Purge All Cache manually, though admin. I need it to update on every refresh for everyone.
Things I tried that didn't work:
- I assumed it was WPEngine's Cache, so it was disabled (wpengine). Nothing.
- I tried setting "define( 'WP_CACHE', FALSE );" in wp-config.php to FALSE. Nothing.
- It's not a plugin. There are 3 on the website - Contact Form 7, Breadcrumb NavXT and Custom Global Variables.
It's not the first time I encounter this problem, but I still have no idea how to fix it.
What do?
P.S. Yes, I know "just use js", I just gave it as an example. I need PHP to refresh, not find a workaround in js. I already did that before :)