Automattic / Automattic/wp-super-cache
Mobile caching not working (debug log provided)
- Dominant language
- PHP
- Stars
- 436
- Forks
- 130
- Avg merge
- 15h 11m
- Merged PRs (30d)
- 10
Description
Hi, I'm trying to get two different caches both for Desktop and Mobile web site ( http://www.gvmprotezionecivile.it ).
I activated the Mobile devices support, but unfortunately it doesn't work for me.
I activated the debug logging and provided you a part of the log file where I see that WPSC recognizes the mobile device and searches for the index-mobile.html cached page. It didn't find it so generates a new one, but the name INDEX.HTML is the same for the desktop version.
Could you help me please?
Here is the log erxcept:
23:02:57 /notizie-flash/corso-protezione-civile-cittadinanza wp_cache_check_mobile:
23:02:57 /notizie-flash/corso-protezione-civile-cittadinanza mobile browser detected: Mozilla/5.0 (Linux; Android 4.4.2; GT-I9195 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.94 Mobile Safari/537.36
23:02:57 /notizie-flash/corso-protezione-civile-cittadinanza supercache dir: /web/htdocs/www.gvmprotezionecivile.it/home/public/wp-content/cache/supercache/www.gvmprotezionecivile.it/notizie-flash/corso-protezione-civile-cittadinanza/
23:02:57 /notizie-flash/corso-protezione-civile-cittadinanza No Super Cache file found for current URL: /web/htdocs/www.gvmprotezionecivile.it/home/public/wp-content/cache/supercache/www.gvmprotezionecivile.it/notizie-flash/corso-protezione-civile-cittadinanza/index-mobile.html
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza In WP Cache Phase 2
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza Created output buffer
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza Output buffer callback
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza Anonymous user detected. Only creating Supercache file.
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza Gzipping buffer.
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza Writing non-gzipped buffer to supercache file.
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza Writing gzipped buffer to supercache file.
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza Renamed temp supercache file to /web/htdocs/www.gvmprotezionecivile.it/home/public/wp-content/cache/supercache/www.gvmprotezionecivile.it/notizie-flash/corso-protezione-civile-cittadinanza/index.html
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza Renamed temp supercache gz file to /web/htdocs/www.gvmprotezionecivile.it/home/public/wp-content/cache/supercache/www.gvmprotezionecivile.it/notizie-flash/corso-protezione-civile-cittadinanza/index.html.gz
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza Writing gzip content headers. Sending buffer to browser
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza wp_cache_shutdown_callback: collecting meta data.
23:02:58 /notizie-flash/corso-protezione-civile-cittadinanza Did not write meta file: wp-cache-57ce7bcc66466e0d32f6dccaa0c7e067.meta _1_ _0_ _1_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the mobile-cache behavior with mobile support enabled and inspect the debug output around wp_cache_check_mobile and the supercache paths shown in the report. Done means desktop and mobile requests create and serve distinct cached files instead of both using index.html.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100