【问题标题】:How to improve wordpress apereance->menus performance?如何提高 wordpress 外观->菜单性能?
【发布时间】:2015-03-26 02:01:34
【问题描述】:

我正在使用 wordpress,在我的菜单、子菜单中添加了 100 多页。 我的 php.ini 或任何其他服务器配置文件需要哪些配置来提高在 wordpress 中管理菜单的性能?

SELECT `ID` , `post_date` , `post_modified` , `post_parent` , `post_content` , `post_name` , `post_status` , `menu_order`
FROM `test1_posts`
WHERE `post_type` = 'nav_menu_item' AND `post_status` = 'draft'
ORDER BY `test1_posts`.`post_parent` DESC

【问题讨论】:

  • 您可以对您的内容进行分类。

标签: wordpress apache2 lamp


【解决方案1】:

只需在您的主题中缓存菜单输出。

看到这个插件: https://github.com/ryanhellyer/menu-cache

在每个页面上缓存菜单,这样您就不会丢失菜单中的“活动”类。

【讨论】:

  • 这种想法,并不能解决我的问题,不建议在菜单的大量页面上使用此插件。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多