Menu query fires twice.

Posted in: Newspaper
Post count: 68

Hi,
The below mentioned query fires twice. I’m not sure what is the reason behind it. how to make it to fire once.

SELECT wp_posts.*
FROM wp_posts
WHERE 1=1
AND wp_posts.ID IN (74,75,76,78,79,80,1157,1216)
AND wp_posts.post_type = ‘nav_menu_item’
AND ((wp_posts.post_status = ‘publish’))
ORDER BY wp_posts.menu_order ASC

Regards,
Sathya

Post count: 35449

Hi,

Menu query fires twice, once for desktop and ones for responsive ( mobile devices ); the menus are displayed depending on the device you are using..

Thank you for your understanding.

Post count: 68

Hi,
Is there any option to cache those query result. Since the menu won’t be changed frequently.

Thanks,
Sathya

Post count: 35449

Hi,

Please try to use WP Super Cache , this plugin will increase the page load speed.

Thank you.

Post count: 68

Hi,
I’m already using the cache plugin. But Menu query is not getting cached. So please suggest a way to cache the menu query.

Thanks,
Sathya

Post count: 35449

Hi,

Please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
https://forum.tagdiv.com/requirements-for-newspaper/
Make sure that you have the last version of php.

Thank you for your understanding.

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