大网数据广告活动
网站运营与故障问答

Reduce amount of site script executions

· 52CE 我爱测

I use SiteGround as a hosting service and I received a notice that we are reaching our monthly executions. We also use Wordpress as a CMS. Our site is popular and often has several users on it at once, but it's not bursting with …

问题原文

原帖链接 · Andrea Rose · CC BY-SA 3.0

I use SiteGround as a hosting service and I received a notice that we are reaching our monthly executions. We also use Wordpress as a CMS. Our site is popular and often has several users on it at once, but it's not bursting with traffic. I am in the AwStats analyzer as this help article suggests, but I'm not sure how to interpret my data.

https://www.siteground.com/tutorials/websiteperformance/reduce-executions.htm

Below is a screenshot with what I'm seeing as my most intensive pages/assets being hit:

I'm also already using SuperCacher and various other tools to help reduce some of this but I'm wondering if we actually need to purchase the next tier in our hosting to handle these monthly execution.

已采纳解答

原帖链接 · Jeff Wilbert · CC BY-SA 3.0

The host your using apparently has a limit on number of script executions you can do which is interesting to say the least; not the kind of host I would go with personally but personal opinions aside.

AWStats is telling you the captcha image for your contact form is being trigger/viewed A LOT compared to other pages/scripts on your site. You'll want to investigate why that is; possibly clicking the link on that page in your image will show you more details about the traffic to that page.

I'd suspect that it's bots and spammers that are mainly hitting the contact form causing the high number of views.

As for how to fix it, well you'd need to find a way to view detailed stats on that page about the traffic and people hitting it, mainly trying to get there user agent information which then you can use to block/prevent that page/or script from loading based on user agent matching. Another option is depending where the captcha/contact form is on your page, if it's/or if you can put it below the fold on your page you can use lazy loading on it so it wont show/process as an execution unless the user scrolls down the page and it comes into view, else it'll load/execute as soon as anyone hits your page.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2017-08-28)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。