• Resolved Jaro

    (@pixtweaks)


    Hello,
    I had before WP Rocket and I removed it. I removed in wp-config define(‘WP_CACHE’, true);
    LS plugin doesn’t show any error but it just doesn’t work. Log file is at the bottom.
    Probably it’s good to mention that I have this site in folder instead of /public_html and I have rewritten in main .htaccess rules to go to folfer:

    <IfModule mod_rewrite.c>
    RewriteCond %{HTTP_HOST} ^(www.)?comoaprenderingles.es$
    RewriteCond %{REQUEST_URI} !^/como/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /como/$1
    RewriteCond %{HTTP_HOST} ^(www.)?comoaprenderingles.es$
    RewriteRule ^(/)?$ como/index.php [L]
    RewriteCond %{HTTPS} !^on$
    RewriteRule (.*) https://comoaprenderingles.es/$1 [R,L]
    </IfModule>

    I sent you a report via settings menu but it didn’t give me any number.

    Thank you for you help!

    Jaro

    02/16/18 13:54:16.417 [190.157.65.6:39651 1 I9M] GET HTTP/1.1 /como/wp-admin/admin.php
    02/16/18 13:54:16.417 [190.157.65.6:39651 1 I9M] Query String: page=lscache-settings&settings-updated=true
    02/16/18 13:54:16.417 [190.157.65.6:39651 1 I9M] User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
    02/16/18 13:54:16.417 [190.157.65.6:39651 1 I9M] Accept Encoding: gzip
    02/16/18 13:54:16.417 [190.157.65.6:39651 1 I9M] X-LSCACHE: true
    02/16/18 13:54:16.847 [190.157.65.6:39651 1 I9M] LSCWP_CTRL bypassed empty
    02/16/18 13:54:16.848 [190.157.65.6:39651 1 I9M] X Cache_control -> no Cache ( Admin page ) \ LSC_Control::set_nocache()@260 \ LSC_Admin->admin_init()@110 \ WP_Hook->apply_filters()@286
    02/16/18 13:54:16.885 [190.157.65.6:39651 1 I9M] Data init
    02/16/18 13:54:16.885 [190.157.65.6:39651 1 I9M] Data: Checking optm table
    02/16/18 13:54:16.886 [190.157.65.6:39651 1 I9M] Data: Existed
    02/16/18 13:54:16.889 [190.157.65.6:39651 1 I9M] Config: role in vary_group [group] 99
    02/16/18 13:54:16.927 [190.157.65.6:39651 1 I9M] Object: init
    02/16/18 13:54:18.439 [190.157.65.6:33087 1 gdu] POST HTTP/1.1 /como/wp-admin/admin-ajax.php
    02/16/18 13:54:18.439 [190.157.65.6:33087 1 gdu] Query String:
    02/16/18 13:54:18.439 [190.157.65.6:33087 1 gdu] User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
    02/16/18 13:54:18.439 [190.157.65.6:33087 1 gdu] Accept Encoding: gzip
    02/16/18 13:54:18.439 [190.157.65.6:33087 1 gdu] X-LSCACHE: true
    02/16/18 13:54:18.851 [190.157.65.6:33087 1 gdu] LSCWP_CTRL bypassed empty
    02/16/18 13:54:18.852 [190.157.65.6:33087 1 gdu] X Cache_control -> no Cache ( Admin page ) \ LSC_Control::set_nocache()@260 \ LSC_Admin->admin_init()@110 \ WP_Hook->apply_filters()@286

    02/16/18 13:54:24.638 [190.157.65.6:16585 1 SxV] GET HTTP/1.1 /
    02/16/18 13:54:24.638 [190.157.65.6:16585 1 SxV] Query String:
    02/16/18 13:54:24.638 [190.157.65.6:16585 1 SxV] User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
    02/16/18 13:54:24.638 [190.157.65.6:16585 1 SxV] Accept Encoding: gzip
    02/16/18 13:54:24.638 [190.157.65.6:16585 1 SxV] X-LSCACHE: true
    02/16/18 13:54:26.763 [190.157.65.6:38661 1 zP2] GET HTTP/1.1 /como/wp-content/themes/activello/assets/css/bootstrap.min.css.map
    02/16/18 13:54:26.763 [190.157.65.6:38661 1 zP2] Query String:
    02/16/18 13:54:26.763 [190.157.65.6:38661 1 zP2] User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
    02/16/18 13:54:26.763 [190.157.65.6:38661 1 zP2] Accept Encoding: gzip
    02/16/18 13:54:26.763 [190.157.65.6:38661 1 zP2] X-LSCACHE: true
    02/16/18 13:54:27.048 [190.157.65.6:42251 1 0FQ] POST HTTP/1.1 /como/wp-admin/admin-ajax.php
    02/16/18 13:54:27.048 [190.157.65.6:42251 1 0FQ] Query String:
    02/16/18 13:54:27.048 [190.157.65.6:42251 1 0FQ] User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
    02/16/18 13:54:27.048 [190.157.65.6:42251 1 0FQ] Accept Encoding: gzip
    02/16/18 13:54:27.048 [190.157.65.6:42251 1 0FQ] X-LSCACHE: true
    02/16/18 13:54:27.835 [190.157.65.6:42251 1 0FQ] LSCWP_CTRL bypassed empty
    02/16/18 13:54:28.939 [190.157.65.6:31921 1 S6y] GET HTTP/1.1 /
    02/16/18 13:54:28.939 [190.157.65.6:31921 1 S6y] Query String:
    02/16/18 13:54:28.939 [190.157.65.6:31921 1 S6y] User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
    02/16/18 13:54:28.939 [190.157.65.6:31921 1 S6y] Accept Encoding: gzip
    02/16/18 13:54:28.939 [190.157.65.6:31921 1 S6y] X-LSCACHE: true

    02/16/18 13:54:45.330 [190.157.65.6:29851 1 Ipc] GET HTTP/1.1 /
    02/16/18 13:54:45.330 [190.157.65.6:29851 1 Ipc] Query String:
    02/16/18 13:54:45.330 [190.157.65.6:29851 1 Ipc] User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
    02/16/18 13:54:45.330 [190.157.65.6:29851 1 Ipc] Accept Encoding: gzip
    02/16/18 13:54:45.330 [190.157.65.6:29851 1 Ipc] X-LSCACHE: true
    02/16/18 13:54:47.242 [190.157.65.6:41283 1 q4n] POST HTTP/1.1 /como/wp-admin/admin-ajax.php
    02/16/18 13:54:47.242 [190.157.65.6:41283 1 q4n] Query String:
    02/16/18 13:54:47.242 [190.157.65.6:41283 1 q4n] User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
    02/16/18 13:54:47.242 [190.157.65.6:41283 1 q4n] Accept Encoding: gzip
    02/16/18 13:54:47.242 [190.157.65.6:41283 1 q4n] X-LSCACHE: true
    02/16/18 13:54:47.654 [190.157.65.6:41283 1 q4n] LSCWP_CTRL bypassed empty

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support qtwrk

    (@qtwrk)

    hmmmmm,

    what’s the content in /sub-folder/.htaccess ?

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi, @pixtweaks

    Do you still need help with this issue? If not, I’d like to mark it Resolved.

    If so, can you share the contents of como/.htaccess?

    Thanks!

    Thread Starter Jaro

    (@pixtweaks)

    Hello Lisa,
    no, it’s still not working. Here is .htaccess
    Any suggestions I can do to make it work? Thank you!

    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* – [E=Cache-Control:no-autoflush]
    RewriteRule min/\w+\.(css|js) – [E=cache-control:no-vary]

    ### marker CACHE RESOURCE start ###
    RewriteRule como/wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php – [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###

    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ – [E=cache-control:max-age=86400]
    ### marker FAVICON end ###

    </IfModule>
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    # END LSCACHE
    #access from IP only
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_URI} ^(.*)?/como/wp-login\.php(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
    RewriteCond %{REMOTE_ADDR} !^*\.*\.*\.*$ /*this is access to site only from my ip, been just anonymised */
    RewriteRule ^(.*)$ – [R=403,L]
    </IfModule>
    #End of access from IP only

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    I visited your site and I see that you are using Cloudflare.
    There may be a conflict between your Cloudflare and LSCache settings.

    LSCache handles all dynamic content (HTML).
    Cloudflare should be set up to only handle static content (Javascript, CSS, images, etc.).

    Can you verify that Cloudflare is only caching static content?

    Thread Starter Jaro

    (@pixtweaks)

    I have changed it to cache only /wp-content/upload/ but I have another 3 sites on the same server with the same settings and on all LS cache works great from the very first moment.
    And I have set up CSS/JS combination, HTML minification and this is not visible in HTML, so to me for some reason, it doesn’t work ??

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Maybe there is a conflict with another plugin. Do you have any plugin in use for this site that you are not using for the others?

    Also, you might want to look at the report output for all of your sites and compare them. It’s possible you did one little thing differently with this site and you don’t realize it. You can find the report under LiteSpeed Cache > Report

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Jaro, did you remember to turn on caching?
    LiteSpeed Cache > Settings > General, set Enable LiteSpeed Cache to Enable.

    Thread Starter Jaro

    (@pixtweaks)

    In the setting, the Caching is on for sure. Before I had WP Rocket on this site, but I had WP Rocket on the others too. As well the same configuration I recently made on another server and worked all fine right away.
    I tried to turn off all plugins and no change.
    Any other ideas why it doesn’t work?
    Thank you

    Hello,

    Can you check 2 things.

    1 – In Litespeed cache -> Settings -> Advanced tab is “Include advanced-cache.php ” check.

    2 – What is in that file wp-content/advanced-cache.php

    Plugin Support Cold Egg

    (@eric780217)

    Hello,

    Just found all other pages show 404 not found, is there any change you made recently?

    Thread Starter Jaro

    (@pixtweaks)

    Thank you Erik, I didn’t know about 404 error.
    I solved the issue! There were 2 problems. In root folder .htaccess there was WP basic command
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    I removed it and 404s disappeared.

    Second, as Tishu suggested to check advanced-cache.php
    It was check and when I unchecked it, caching and optimization started to work. There is a code from WP-Rocket that was installed on this site before.

    Now shell I leave advanced-cache.php off or turn it on and delete all its content?
    Thank you for your help!

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Thanks for sharing the solution! I’m glad it’s working.

    You can handle that advanced-cache.php file however you would like. Personally, I’d probably delete the contents and turn it on in LSCache. There’s no point keeping WP-Rocket config files around, if you’ve uninstalled the plugin.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Caching and optimization doesn’t work’ is closed to new replies.