Desktop templates loading in mobile devices

Posted in: Newspaper
Post count: 77

Hi TagDiv team,

We have a website which uses different templates for desktop, and mobile devices. After migrating from a Litespeed Web Server where we used the LSCWP caching plugin – the caching worked flawlessly there but there were other resources issues – to a new server with Nginx, WP Rocket, and Redis object cache (deactivated and removed the LSCWP plugin too), we started off with the site working surprisingly fantastically. Then after a few hours had passed we discovered that the desktop version was squeezed in to the mobile viewports. We tried all different configuration options in WP Rocket, to no avail.

A couple of years ago, before hosting the site to the former server with Litespeed, we had had it in a different host with Apache, and we had experienced the same behavior there also. The only thing that had worked then, was the W3 Total Cache plugin, which we tried to install in this case as well. However, it appeared like shortly after flushing all caches in that, there would be a conflict between that, and WP Rocket’s files inside of /wp-content/cache directory, where apparently both plugins saved (most or all of) their configuration settings individually.

Kindly note that no two caching plugins were enabled at one time while testing everything. There were no conflicts like that. All conflicts appeared to have some relation to WP Rocket’s configuration files. We made sure to also delete advanced-cache.php from /wp-content/.

What puzzled us most, was that even with WP Rocket deactivated (and all other plugins also, including Cloudflare being in Developer Mode), appending the URL parameter ?nowprocket to the URL had a positive effect, allowing the site to load properly, and work flawlessly in both formats (desktop & mobile). It was time to completely remove WP Rocket from our site.

Even after completely removing WP Rocket from the site it would still not function properly. It was clear it was a WP Rocket left-over thing, because even with it being deactivated, and then deleted, we tested further, and we were still experiencing this issue; applying the ?nowprocket url parameter would allow the site to work correctly still. We made sure to delete all left-overs from the file system; at least all we could discover.

Then we noticed in the Newspaper pages that WP Super Cache was the recommended plugin for the Newspaper theme. We installed that and deactivated everything else, but still, after a couple of minutes, we experienced the same behavior once more.

Digging in the WPSC plugin we discovered that there was an option to explicitly set the caching files directory. We set that to /wp-content/super-cache instead of the default /wp-content/cache one, since at first it did not want to work correctly and ?nowprocket was still doing its thing. Additionally we disabled the Developer Mode in Cloudflare again (effectively enabling CF), and purged all caches there. After a half an hour we have not experienced the unwanted behavior yet.

Kindly note that all tests were performed in a new incognito session every time, to rule out the plausibility of a browser cache conflict also.

Anyway, we would like to kindly request you assist us with the correct configuration settings for WP Super Cache for the Newspaper theme. Please share any warning flags we should keep an eye out for, and point us towards possible other culprits we might have overlooked, which would disallow for the unwanted behavior experience we have described.

Thank you.

  • This topic was modified 3 years by Redlemon. Reason: wrong order of events
Post count: 21065

Hello @Redlemon!

We recommend using only one cache plugin, the WP Super Cache plugin with this configuration: https://forum.tagdiv.com/cache-plugin-install-and-configure
Do not use multiple cache plugins!
Check out some known possible factors which can interfere with our theme: https://forum.tagdiv.com/general-options-may-interfere-newspaper-theme/

Thank you!

Post count: 77

Hi Bettina,

Thanks for sharing those links. We have followed them guides, and so far it all seems to work properly.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.