WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Jetpack Mobile and WP-Super-Cache (14 posts)

  1. patschi
    Member
    Posted 1 year ago #

    Jetpack and WP-Super-Cache are working fine, but if I visit my blog with my phone I'll get the mobile theme - no problem with that. But when I open the same article/site on my computer, I will get the mobile version on my desktop. I don't found a solution to fix that. Thanks in advance!

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. patschi
    Member
    Posted 1 year ago #

    Thanks for your response. I'll try it in the next couple of hours :)

  4. patschi
    Member
    Posted 1 year ago #

    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.

  5. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  6. patschi
    Member
    Posted 1 year ago #

    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)

  7. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

    "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.

  8. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

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

  9. patschi
    Member
    Posted 1 year ago #

    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
  10. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  11. patschi
    Member
    Posted 1 year ago #

    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.

  12. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  13. patschi
    Member
    Posted 1 year ago #

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

  14. patschi
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.