Articles on: Developers

Generate separate cache for mobile

Most websites use responsive layouts, so separate mobile cache isn't typically needed.

However, if your theme, plugins, or custom code create different content for mobile/tablet devices based on user-agent, you can enable separate mobile cache with this filter:

add_filter('flying_press_cache_mobile', '__return_true');


Note: Only generate a separate mobile cache if delivering different content via PHP. No need for a separate cache with a responsive design.

Updated on: 18/05/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!