Skip to content

lanceliao/Typecho-Redis-Cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

##Typecho Redis Cache

Typecho Redis Cache is a full-site cache script for Typecho Blogging Platform, inspired by Jim Westergren & Jeedo Aquino's wordpress-with-redis-as-a-frontend-cache.

###Requirements

  • PHP >= 5.3
  • Redis
  • Nginx or Apache server
  • Typecho

###Get Started

  1. Typecho Redis Cache use Credis as Redis client, so firstly download Credis here, then upload Credis to Typecho root directory.
  2. Rename index.php in Typecho root directory to index_orgin.php.
  3. Configure Redis server host, server port and userkey of index.php, then upload it to Typecho root directory.

The structure of Typecho root directory:

├── index.php 			    Typecho Redis Cache script          
├── index_origin.php 	original Typecho index.php
├── Credis 					Credis library
    ├── Client.php 			Credis library files
    ├── other files
├── other directories and files of Typecho

Now open the site and enjoying the rapid speed!

###Debug To view the debug message, please set url query string debug to true when visiting a page. example:

http://www.example.com/page.html?debug=true

###Cache Manage The cache content will never expire itself, it need to be purged at regular intervals manually. Set url query string userkey and action to purge the cache.

examples:

purge a page cache

http://www.example.com/page.html?debug=true&userkey=abc123&action=purgepage

purge the whole site chche

http://www.example.com/page.html?debug=true&userkey=abc123&action=purgeall

###Author

###License Copyright (C) <2014>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Typecho Redis Cache is a full-site cache script for Typecho Blogging Platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages