WordPress.org

Support

Support » Plugins and Hacks » WP Super Cache » Jetpack Mobile and WP-Super-Cache

Jetpack Mobile and WP-Super-Cache

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Donncha O Caoimh

    @donncha

    Try the development version. I added a helper plugin you can enable that should cache things properly.
    Go into Supercache Settings->Plugins and look for the Jetpack Mobile Theme form.

    http://ocaoimh.ie/y/2o

    Thanks for your response. I’ll try it in the next couple of hours 🙂

    I tested and it isn’t working well. The caching for the home site works, but not for the articles. When I first visit a article I also see the mobile site on my desktop computer.

    I did enabled the Jetpack Mobile support in the plugins section.

    Plugin Author Donncha O Caoimh

    @donncha

    Can you enable it again but this time clear the cache out immediately afterwards and enable debugging for your IP address.

    The log should say it detected desktop or mobile visitors. It will also report some problems if it has trouble running.

    Okay, I did it. It seems that the detection is working fine. When I’m logged in I have no problems. But users, who are not logged in see the mobile site, when I make the first visit on this article with my phone.

    In the logs I always find “Supercache not enabled” – whats that?

    Thanks for your support 🙂

    I’ll post the logs here:
    1. visit was the phone
    2. visit was my not-logged-in computer

    08:56:56 /7989/article-link-going-here wp_cache_check_mobile:
    08:56:56 /7989/article-link-going-here wp_cache_check_mobile: mobile user agent detected by wp_cache_check_mobile action
    08:56:56 /7989/article-link-going-here supercache dir: /var/www/wp-content/cache/supercache/www/7989/article-link-going-here/
    08:56:56 /7989/article-link-going-here No wp-cache file exists. Must generate a new one.
    08:56:56 /7989/article-link-going-here In WP Cache Phase 2
    08:56:56 /7989/article-link-going-here Setting up WordPress actions
    08:56:56 /7989/article-link-going-here Supercache caching disabled. Only using wp-cache. Non empty GET request.
    08:56:56 /7989/article-link-going-here Created output buffer
    08:56:56 /7989/article-link-going-here Output buffer callback
    08:56:56 /7989/article-link-going-here Supercache disabled: GET or feed detected or disabled by config.
    08:56:56 /7989/article-link-going-here Gzipping buffer.
    08:56:56 /7989/article-link-going-here Writing gzipped buffer to wp-cache cache file.
    08:56:56 /7989/article-link-going-here Renamed temp wp-cache file to /var/www/wp-content/cache/wp-cache-ffad1927bc4bc281ed54c63d3b8e1af8.html
    08:56:56 /7989/article-link-going-here Writing gzip content headers. Sending buffer to browser
    08:56:56 /7989/article-link-going-here wp_cache_shutdown_callback: collecting meta data.
    08:56:56 /7989/article-link-going-here Writing meta file: /var/www/wp-content/cache/meta/wp-cache-ffad1927bc4bc281ed54c63d3b8e1af8.meta
    08:56:57 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 wp_cache_check_mobile:
    08:56:57 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 wp_cache_check_mobile: mobile user agent detected by wp_cache_check_mobile action
    08:56:57 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 supercache dir: /var/www/wp-content/cache/supercache/www/wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php/
    08:56:57 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 No wp-cache file exists. Must generate a new one.
    08:56:57 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 In WP Cache Phase 2
    08:56:57 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 Setting up WordPress actions
    08:56:57 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 Supercache caching disabled. Only using wp-cache. Non empty GET request.
    08:56:57 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 URI rejected. Not Caching
    08:56:58 /apple-touch-icon-precomposed.png wp_cache_check_mobile:
    08:56:58 /apple-touch-icon-precomposed.png wp_cache_check_mobile: mobile user agent detected by wp_cache_check_mobile action
    08:56:58 /apple-touch-icon-precomposed.png supercache dir: /var/www/wp-content/cache/supercache/www/apple-touch-icon-precomposed.png/
    08:56:58 /apple-touch-icon-precomposed.png No wp-cache file exists. Must generate a new one.
    08:56:58 /apple-touch-icon-precomposed.png In WP Cache Phase 2
    08:56:58 /apple-touch-icon-precomposed.png Setting up WordPress actions
    08:56:58 /apple-touch-icon-precomposed.png Supercache caching disabled. Only using wp-cache. Non empty GET request.
    08:56:58 /apple-touch-icon-precomposed.png Created output buffer
    08:56:58 /apple-touch-icon-precomposed.png Output buffer callback
    08:56:58 /apple-touch-icon-precomposed.png 404 file not found not cached
    08:56:58 /apple-touch-icon-precomposed.png wp_cache_shutdown_callback: collecting meta data.
    08:56:58 /apple-touch-icon-precomposed.png Did not write meta file: wp-cache-fdbaa97359c2d9675d8175c15c7d735f.meta ** *0* **
    08:56:59 /apple-touch-icon.png wp_cache_check_mobile:
    08:56:59 /apple-touch-icon.png wp_cache_check_mobile: mobile user agent detected by wp_cache_check_mobile action
    08:56:59 /apple-touch-icon.png supercache dir: /var/www/wp-content/cache/supercache/www/apple-touch-icon.png/
    08:56:59 /apple-touch-icon.png No wp-cache file exists. Must generate a new one.
    08:56:59 /apple-touch-icon.png In WP Cache Phase 2
    08:56:59 /apple-touch-icon.png Setting up WordPress actions
    08:56:59 /apple-touch-icon.png Supercache caching disabled. Only using wp-cache. Non empty GET request.
    08:56:59 /apple-touch-icon.png Created output buffer
    08:56:59 /apple-touch-icon.png Output buffer callback
    08:56:59 /apple-touch-icon.png 404 file not found not cached
    08:56:59 /apple-touch-icon.png wp_cache_shutdown_callback: collecting meta data.
    08:56:59 /apple-touch-icon.png Did not write meta file: wp-cache-bf49aa02f67e61fc1d33fdc0c5dea9d8.meta ** *0* **
    08:57:01 /7989/article-link-going-here wp-cache file exists: /var/www/wp-content/cache/wp-cache-ffad1927bc4bc281ed54c63d3b8e1af8.html
    08:57:01 /7989/article-link-going-here Serving wp-cache static file
    08:57:01 /7989/article-link-going-here exit request
    08:57:02 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 wp_cache_check_mobile:
    08:57:02 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 wp_cache_check_mobile: desktop user agent detected by wp_cache_check_mobile action
    08:57:02 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 supercache dir: /var/www/wp-content/cache/supercache/www/wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php/
    08:57:02 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 No wp-cache file exists. Must generate a new one.
    08:57:02 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 In WP Cache Phase 2
    08:57:02 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 Setting up WordPress actions
    08:57:02 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 Supercache caching disabled. Only using wp-cache. Non empty GET request.
    08:57:02 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 URI rejected. Not Caching

    (Censored a little bit)

    Plugin Author Donncha O Caoimh

    @donncha

    “Only using wp-cache. Non empty GET request” is why supercache was disabled. There’s something in the $_GET array which means something like ?x=y added to the url or some plugin or script on your site is adding code there.

    Look for that text in wp-cache-phase1.php, you could add print_r( $_GET, 1 ) to the message which will dump that array to the error log.

    Plugin Author Donncha O Caoimh

    @donncha

    BTW – I Just added GET logging to the plugin if you can grab the development version again.

    Thanks. I updated to the last version (pulled it with svn) and did the same as before. The log:

    11:10:10 /8013/article-url-goes-here wp_cache_check_mobile:
    11:10:10 /8013/article-url-goes-here wp_cache_check_mobile: mobile user agent detected by wp_cache_check_mobile action
    11:10:10 /8013/article-url-goes-here supercache dir: /var/www/wp-content/cache/supercache/www/8013/article-url-goes-here/
    11:10:10 /8013/article-url-goes-here No wp-cache file exists. Must generate a new one.
    11:10:10 /8013/article-url-goes-here In WP Cache Phase 2
    11:10:10 /8013/article-url-goes-here Setting up WordPress actions
    11:10:10 /8013/article-url-goes-here Supercache caching disabled. Only using wp-cache. Non empty GET request. Array
    (
        [q] => /8013/article-url-goes-here
    )
    
    11:10:10 /8013/article-url-goes-here Created output buffer
    11:10:10 /8013/article-url-goes-here Output buffer callback
    11:10:10 /8013/article-url-goes-here Supercache disabled: GET or feed detected or disabled by config.
    11:10:10 /8013/article-url-goes-here Gzipping buffer.
    11:10:10 /8013/article-url-goes-here Writing gzipped buffer to wp-cache cache file.
    11:10:10 /8013/article-url-goes-here Renamed temp wp-cache file to /var/www/wp-content/cache/wp-cache-c0396c872925bac0cc7104a5b451e66b.html
    11:10:10 /8013/article-url-goes-here Writing gzip content headers. Sending buffer to browser
    11:10:10 /8013/article-url-goes-here wp_cache_shutdown_callback: collecting meta data.
    11:10:10 /8013/article-url-goes-here Writing meta file: /var/www/wp-content/cache/meta/wp-cache-c0396c872925bac0cc7104a5b451e66b.meta
    11:10:11 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 wp_cache_check_mobile:
    11:10:11 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 wp_cache_check_mobile: mobile user agent detected by wp_cache_check_mobile action
    11:10:11 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 supercache dir: /var/www/wp-content/cache/supercache/www/wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php/
    11:10:11 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 No wp-cache file exists. Must generate a new one.
    11:10:11 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 In WP Cache Phase 2
    11:10:11 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 Setting up WordPress actions
    11:10:11 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 Supercache caching disabled. Only using wp-cache. Non empty GET request. Array
    (
        [ver] => 3.5.1
    )
    
    11:10:11 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 URI rejected. Not Caching
    11:10:14 /8013/article-url-goes-here wp-cache file exists: /var/www/wp-content/cache/wp-cache-c0396c872925bac0cc7104a5b451e66b.html
    11:10:14 /8013/article-url-goes-here Serving wp-cache static file
    11:10:14 /8013/article-url-goes-here exit request
    11:10:14 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 wp_cache_check_mobile:
    11:10:14 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 wp_cache_check_mobile: desktop user agent detected by wp_cache_check_mobile action
    11:10:14 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 supercache dir: /var/www/wp-content/cache/supercache/www/wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php/
    11:10:14 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 No wp-cache file exists. Must generate a new one.
    11:10:14 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 In WP Cache Phase 2
    11:10:14 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 Setting up WordPress actions
    11:10:14 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 Supercache caching disabled. Only using wp-cache. Non empty GET request. Array
    (
        [ver] => 3.5.1
    )
    
    11:10:14 /wp-content/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/upprev_js.php?ver=3.5.1 URI rejected. Not Caching
    Plugin Author Donncha O Caoimh

    @donncha

    There you go. Something on your server is assigning [q] => /8013/article-url-goes-here. I’m not sure what it is or where to look for that however.

    Ah, I maybe know why: Maybe it’s because I’m using nginx. I could be, that nginx has different rewrite rules and is using ?q on the index.php file.

    Plugin Author Donncha O Caoimh

    @donncha

    That’s probably it unfortunately. I have some test code to make a configurable ignore list for the GET checks but it’s nowhere near ready to go into trunk. Is that q= parameter really needed?

    I think yes, because I’m using the nginx rewrite rules on the official nginx wiki: http://wiki.nginx.org/WordPress

    Can I test it already again from svn?
    Without “?q=” I can’t visit any page or article, so it’s needed.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Jetpack Mobile and WP-Super-Cache’ is closed to new replies.
Skip to toolbar