Home Backend Development PHP Tutorial 分享:WordPress静态化实用工具cos-html-cache使用方法解决思路

分享:WordPress静态化实用工具cos-html-cache使用方法解决思路

Jun 13, 2016 pm 01:23 PM
cache content cos html wordpress

分享:WordPress静态化实用工具cos-html-cache使用方法
静态化的好处我就不多说了,在网上找了几个WordPress静态化方法,发现cos-html-cache比较靠谱,不过安装方法在插件说明文档里不够详细,我就整理补充如下:

1、下载插件:在后台管理“插件”栏目中,点击“添加新插件”,搜索“cos-html-cache”,搜索到后点击安装,插件就会安装在 `wp-content/plugins/`下;
2、安装完插件时,在确认的页面点击激活该插件;
3、在网站(博客)的根目录下创建一个文件 “index.bak”,并将属性设置成0666,一般默认就可以;
4、设置固定链接的格式,比如设置为/html/%year%%monthnum%/%post_id%.html ,一定要以.htm或者.html结尾,否则是无法生成;
5、在网站(博客)根目录下建立一个html文件夹并设置属性为777,一般默认就可以的,这样才能生成内容页的html静态文件;
6、退出登录状态,未登录用户访问的时候才会生成缓存;
7、安装完成。
PS:后续增加、更新文章等,不用退出登陆都能动态生成静态文件的。

官方博客文章地址:http://www.17core.com/blog/html/201101/35.html

------解决方案--------------------

探讨
静态化的好处我就不多说了,在网上找了几个WordPress静态化方法,发现cos-html-cache比较靠谱,不过安装方法在插件说明文档里不够详细,我就整理补充如下:

1、下载插件:在后台管理“插件”栏目中,点击“添加新插件”,搜索“cos-html-cache”,搜索到后点击安装,插件就会安装在 `wp-content/plugins/`下;
2、安装完插件时,在确认的页面点击激活该插……
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated? How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated? Feb 21, 2025 pm 10:54 PM

The way to update ByBit exchanges varies by platform and device: Mobile: Check for updates and install in the app store. Desktop Client: Check for updates in the Help menu and install automatically. Web page: You need to manually access the official website for updates. Failure to update the exchange can lead to security vulnerabilities, functional limitations, compatibility issues and reduced transaction execution efficiency.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Coinsuper exchange software channel official website entrance Coinsuper exchange software channel official website entrance Feb 21, 2025 pm 10:39 PM

The official website entrance of the Coinsuper Exchange: https://www.coinsuper.com. The client download channels are: Windows client, macOS client, and mobile (iOS/Android). Registration requires an email, mobile phone number and password, and you need to complete real-name authentication before you can trade. The platform provides a variety of digital asset transactions, including Bitcoin, Ethereum, etc., with the transaction fee rate of 0.1% for both orders and acceptors. Security safeguards include cold wallet storage, dual-factor verification, anti-money laundering and anti-terrorism financing measures, and with security public

Ouyi okx installation package is directly included Ouyi okx installation package is directly included Feb 21, 2025 pm 08:00 PM

Ouyi OKX, the world's leading digital asset exchange, has now launched an official installation package to provide a safe and convenient trading experience. The OKX installation package of Ouyi does not need to be accessed through a browser. It can directly install independent applications on the device, creating a stable and efficient trading platform for users. The installation process is simple and easy to understand. Users only need to download the latest version of the installation package and follow the prompts to complete the installation step by step.

BITGet official website installation (2025 beginner's guide) BITGet official website installation (2025 beginner's guide) Feb 21, 2025 pm 08:42 PM

BITGet is a cryptocurrency exchange that provides a variety of trading services including spot trading, contract trading and derivatives. Founded in 2018, the exchange is headquartered in Singapore and is committed to providing users with a safe and reliable trading platform. BITGet offers a variety of trading pairs, including BTC/USDT, ETH/USDT and XRP/USDT. Additionally, the exchange has a reputation for security and liquidity and offers a variety of features such as premium order types, leveraged trading and 24/7 customer support.

Mocaverse floor price exceeded 2.9ETH, with an increase of up to 79% in 24 hours! NFT warming up? Mocaverse floor price exceeded 2.9ETH, with an increase of up to 79% in 24 hours! NFT warming up? Mar 05, 2025 pm 02:48 PM

Signs of recovery in the NFT market! Mocaverse floor price soared, with a 24-hour increase of up to 79%. According to OpenSea data, the floor price of the well-known NFT project Mocaverse has recently exceeded 2.9ETH, and the current price is 2.96ETH (approximately US$11,860), with an astonishing 24-hour increase of 79%, reaching a maximum of 3.49ETH. This significant growth has attracted widespread attention from the market. Will the NFT market return to its bull market? Mocaverse Floor Price Chart NFT sector leads the crypto market Coingecko data shows that the overall crypto market has risen in the past 24 hours, while the NFT sector tops the list with an increase of 8.53%. Some projects are particularly good

See all articles