最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Calculating a large number of MYSQL queries as customshort codes, slow

programmeradmin0浏览0评论

I am using wordpress and building a dashboard. There are a lot of complex MYSQL queries that I am running in order to return results from the DB. I am returning these as custom short codes in wordpress, with each query as its own function. That seems to be causing the page to take A LONG time to load >15seconds each time. Is there a better way to do this that would be faster? My customer shortcodes .php file is about 1500 lines long with about 50 calculations. Not all are used on the same dashboard tab, but obviously it is running each in order to get through the ones it needs.

发布评论

评论列表(0)

  1. 暂无评论