As the internet grows older, link rot is becoming a serious problem.
随着互联网的变老,链接腐烂已成为一个严重的问题。
Dead links hurt your SEO ranking and reduce the value of your “evergreen” content.
无效链接会损害您的SEO排名,并降低“常绿”内容的价值。 p>
CacheHero eliminates link rot on your site by locally caching any external links in your site’s pages and posts.
CacheHero通过本地缓存站点页面和帖子中的任何外部链接来消除站点上的链接腐烂。
If an external link goes down, CacheHero will automatically rewrite the link URL to its cached version.
如果外部链接断开,则CacheHero将自动将链接URL重写为其缓存的版本。 p>
CacheHero is designed to be “set and forget”.
CacheHero旨在“设置并忘记”。
It will work immediately upon installation and activation, but there are also some advanced settings such as blacklists of domains and extensions that you want the plugin to ignore (e.g. large video files).
安装和激活后即可立即使用,但还有一些高级设置,例如您希望插件忽略的域和扩展名黑名单(例如大视频文件)。 p>
Demo site at http://www.cachehero.com
演示站点位于http://www.cachehero.com p>
PhantomJS Integration
PhantomJS集成 h4>
By default, CacheHero only caches the basic HTML of a linked page (unless the link is a direct link to a filetype such as PDF or JPG).
默认情况下,CacheHero仅缓存链接页面的基本HTML(除非该链接是指向诸如PDF或JPG之类的文件类型的直接链接)。
If you want to capture a more visually faithful version of the cached page, CacheHero can work with an installed PhantomJS binary to take screenshots of HTML pages.
如果要捕获更直观的缓存页面版本,则CacheHero可以与已安装的PhantomJS二进制文件一起使用以捕获HTML页面的屏幕截图。
If enabled, visitors will be given the option to view either the CacheHero HTML version or the PhantomJS screenshot.
如果启用,则将为访问者提供查看CacheHero HTML版本或PhantomJS屏幕截图的选项。 p>
Setting up PhantomJS integration in 3 easy steps:
通过3个简单的步骤设置PhantomJS集成: p>
- Download the appropriate PhantomJS binary (phantomjs.org) for your hosting platform.
- 下载适用于您的托管平台的PhantomJS二进制文件(phantomjs.org)。 li>
- Install the binary on your server and make sure it is executable by the web process that runs PHP (if on Linux, running
chmod a+x /path/to/phantomjs
along with making sure that - 在服务器上安装二进制文件,并确保该二进制文件可由运行PHP的Web进程执行(如果在Linux上,则运行
chmod a + x / path / to / phantomjs code>并确保the server user can run the binary should be sufficient)
服务器用户可以运行二进制文件就足够了) li>
- Enter the absolute path (the ‘pwd’ command may be useful) to the binary on the CacheHero settings page
- 在CacheHero设置页面上输入二进制文件的绝对路径(“ pwd”命令可能有用) li>
ol>