WordPress changes are visible only to logged in users

So here is an unbelievable issue , i am working on wordpress but the problem is if i changes the content in the template file the changes are visible only if the user is logged in . no condition in the template .

for try i have created a template check.php and put the content only

Read More
<? echo "hieeee" ; ?>

assigned this to a page , first time it shows me the correct content for both conditions, but if i change the content like

<? echo "hieeee this is update " ; ?>

for logged in user it will show hieeee this is update and for logged out users hieeee can’t understand where is the issue .

PHP Version 5.5.16 | mysql client 5.0.11 | SunOS wp1.superhome.com.au 5.11

Related posts

Leave a Reply

2 comments

  1. This is definility a caching issue. First I thought it was a caching plugin, but it seems like you have full control of that. It worked locally but not on production server, so it had to be something on the server.

    Taking a closer look at the phpinfo() you’ve supplied, superhome host is using Zend OPcache v7.0.4-dev

    You could try to disable the cache temporarily by doing:

    • If PHP runs as an Apache module, use .htaccess file: php_flag opcache.enable Off

    • If PHP runs as CGI/FastCGI, use .user.ini file: opcache.enable=0

    • If you have access to php.ini, try to disable it that there.

    UPDATE

    It seemed you find the actual answer that there was a plugin messing it up, but if someone else stumples upon the same issue this answer might help.