• Hi,
    Sometime back I tested a couple of caching plugins on wordpress development server. I uninstalled them afterwards. But, now I see when a non-admin user tries to login, the logged in user is shown cached pages. For example, if a logged in user visits another page in the website immediately after login, he is shown as logged out user.

    I tried the following things:

    1. I made ‘WP_CACHE’ false in wp_config.php
    2. I cleared browser cache, and tried with different browser.
    3. I cleaned up all remaining files after uninstallation of the caching plugins.
    4. I took a backup from one server and freshly installed another server and tested in the new server.
    5. I disabled caching through .htaccess
    6. I disabled all plugins and tested.

    But, nothing helped. The problem is happening in a development server. So, there are no CDN cache or NGINX cache.

    My concern is, if I uninstall and delete all caching plugins, why should wordpress still cache pages and show pages cached for anonymous users to logged in users? Also, I am not able to recreate the problem for an admin user. It happens only for non-admin users (including subscribers, editors, authors). Please note that I am having the issue in the latest version of WordPress.

    Is there any way to resolve the issue or am I hitting a bug in WordPress? Any help will be appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please provide a link to a page on your site where we can see this. Thanks.

    Thread Starter userpqr

    (@userpqr)

    Hi Steve,
    Thanks for the reply. I see this issue on a development server that cannot be accessed remotely. Since WP_CACHE is disabled, and entries related to caching plugins are removed from .htaccess, are there any other ways WordPress server can still cache? I am running WordPress on Apache server.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That’s why I wanted to see what your server is serving. There should be no caching… what do you see when you look at the page source?

    Thread Starter userpqr

    (@userpqr)

    Hi Steve,
    When I login as a non-admin user and click on a page, I can see a page which is cached for anonymous user(including a login form). In that page, I can see the following headers:

    General Header
    Request URL: https://localhost/****/
    Request Method: GET
    Status Code: 200 OK
    Remote Address: [::1]:80
    Referrer Policy: no-referrer-when-downgrade

    Response Headers
    Cache-Control: max-age=0, no-cache, no-store, must-revalidate
    Connection: Keep-Alive
    Content-Type: text/html; charset=UTF-8
    Date: Wed, 11 Sep 2019 18:57:31 GMT
    Expires: 0
    Keep-Alive: timeout=5, max=100
    Link: ********
    Link: ********
    Pragma: no-cache
    Server: Apache
    Set-Cookie: *******; expires=Wed, 11-Sep-2019 19:27:32 GMT; *****
    Set-Cookie: *********; expires=Thu, 08-Oct-2020 18:57:32 GMT; ******
    Set-Cookie: **********; expires=Wed, 11-Sep-2019 19:27:32 GMT; *******
    Transfer-Encoding: chunked

    Request Headers
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
    Accept-Encoding: gzip, deflate, br
    Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
    Cache-Control: max-age=0
    Connection: keep-alive
    Cookie: *******
    Host: localhost
    Referer: https://localhost/
    Sec-Fetch-Mode: navigate
    Sec-Fetch-Site: none
    Sec-Fetch-User: ?1
    Upgrade-Insecure-Requests: 1
    User-Agent: **********

    Please let me know if any more information is needed.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I was asking about right clicking and selecting “view source”. Any comments therein indicating caching?

    Thread Starter userpqr

    (@userpqr)

    I checked the page source. But, there is no indication that the page was optimized by any caching plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My wordpress server is badly broken’ is closed to new replies.