How to cache a separate wordpress template?
There is a site on wp, 500+ pages.
Home page for mobile devices should differ from desktop version.
With it differ dramatically.
So I decided to get out of this situation in this way:
In the template home page - page-home.php wrote a simple condition:
<?php /* Template Name: Home */ ?>
Now open different templates for different devices. But there's a problem with the caching plugin (wp fastest cache), it caches the page and always given an option: either mobile version or desktop. It should not be.
Non-cached download speed is not happy, as many database queries on the page.
Is it possible to cache a separate php templates? Maybe there is a more serious plugins that allow you to control caching?
upd: by "cache" you mean creating a static copy