Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tedj14

    (@tedj14)

    The problem was SSL certificate. If certificate is self-signed or not valid it did not work.

    Also, visitors with user agent “WordPress/* example.com” should not be served with cached content without invoking PHP.

    
    if ($http_user_agent ~* ^WordPress.*\ example\.com$ ) {
      set $cache_uri 'null cache';
    }
    

    Or more simple code (but will serve other WordPress sites without caching – for example, when another WP site request RSS it will not be cached):

    
    if ($http_user_agent ~* WordPress ) {
      set $cache_uri 'null cache';
    }
    

    Context of this code can be found here.

    • This reply was modified 9 years, 4 months ago by tedj14.
    Thread Starter tedj14

    (@tedj14)

    It gives error only when this checkbox is not checked:

    screenshot

    • This reply was modified 9 years, 4 months ago by tedj14.
    Thread Starter tedj14

    (@tedj14)

    I changed the URL of the website to http:// (it was https:// with self-signed certificate).

    It stared to work, but when it made 111 cached pages the counter did not move (I also check this on the filesystem, not only on “Contents” tab).

    
    $ find /home/account94/public_html/wp-content/cache/ |  grep \.gz | wc -l
    111
    
    
    Full refresh of cache in 0 hours 14 minutes and 25 seconds.
    
    Currently caching from post 300 to 400.
    
    Page last cached: 366 https://reasonableobservers.ml/how-did-garcinia-cambogia-gain-its-fat-burning-reputation.html
    

    The URL above is still “https:// …” despite I changed the settings in “General” (WordPress Address (URL) and Site Address (URL)). Maybe because I am accessing the WordPress Dashboard with https protocol.

    I am testing it now with http Dashboard…

    It made 165 cached pages so far.

    It looks like there is an problem when the plugin is trying to visit the pages in order to activate the caching – it stops if certificate is self signed.

    Thread Starter tedj14

    (@tedj14)

    I tested it with

    
    wget -v -r -nc --no-parent --no-check-certificate mytestingwebiste.tld
    

    and caching works (it caches the pages that are visited by the wget).

    The only problem is that preload is not working (despite there is an indication in plugin’s control panel that it works – see the screenshot above).

Viewing 4 replies - 1 through 4 (of 4 total)