Learn about Centmin Mod LEMP Stack today
Become a Member

Possible VHost / PageSpeed Bug?

Discussion in 'Bug Reports' started by RB1, Jan 18, 2017.

  1. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    7:08 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.11.8
    • PHP Version Installed: 7.0.14
    • MariaDB MySQL Version Installed: 10.1.20
    • When was last time updated Centmin Mod code base ? : Today, fully up to date

    I just noticed that on one of my domains with the vhost config containing:
    Pages still seem to be cached somehow. If I make changes to the page they are not immediately shown. Clearing browser cache and reloading doesn't update it, but the instant I run:
    Code (Text):
    rm -rf /var/ngx_pagespeed_cache/*
    and reload, the new changes show.
    What's weird is that there are no "X-Page-Speed" headers.

    Not really a bug, just something dumb on my part. You can delete this thread or move it elsewhere :p
     
    Last edited: Jan 19, 2017
  2. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    12:08 PM
    Nginx 1.13.x
    MariaDB 5.5
    is it http or https vhost ? do both exist ? maybe you edited http one but using https one ?
     
  3. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    7:08 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    It's a HTTPs vhost. HTTP vhost exists but renamed example.com.conf-disabled
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    12:08 PM
    Nginx 1.13.x
    MariaDB 5.5
    any reason you added pagespeed off; in vhost instead of global command = pscontrol off ?

    if you do pscontrol off does it cache ?
     
  5. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    7:08 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    Because I have two other domains I would like to use PageSpeed on :)
    I will try global pscontrol off when I have access to my server in a couple hours

    Edit: Hmm...I think it's just something with PHP caching
    After restarting PHP-FPM it shows the changes...
    I still have a lot left to learn :bookworm:

    Edit 2: I think what happened is that I have a habit of always running "nprestart" after deleting PageSpeed cache which led me to believe it was PageSpeed causing the issue. I ran each command separately "service nginx restart", "service php-fpm restart", and deleted PageSpeed cache and it led me to the conclusion that it's only PHP-FPM that needs to be restarted.
     
    Last edited: Jan 19, 2017