Skip to content

Commit

Permalink
Merge pull request #7 from emrikol/v1.0.1
Browse files Browse the repository at this point in the history
V1.0.1
  • Loading branch information
emrikol authored Jun 23, 2017
2 parents 3a0973f + 38d3190 commit 5ed4fc8
Show file tree
Hide file tree
Showing 14 changed files with 2,565 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
105 changes: 105 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
module.exports = function( grunt ) {
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),

shell: {
target: {
command: 'wp2md convert readme.txt > readme.md'
}
},

version: {
readme: {
options: {
prefix: 'Stable tag:\\s*'
},
src: ['readme.txt']
},
scss: {
options: {
prefix: 'Version:\\s*'
},
src: ['scss/style.scss']
},
package: {
src: ['package.json']
}
},

clean: {
main: ['release/<%= pkg.version %>']
},

copy: {
main: {
src: [
'focus.php',
'LICENSE',
'readme.txt',
'includes/**'
],
dest: 'release/<%= pkg.version %>/'
}
},

compress: {
main: {
options: {
mode: 'zip',
archive: './release/<%= pkg.name %>-v<%= pkg.version %>.zip'
},
expand: true,
cwd: 'release/<%= pkg.version %>/',
src: ['**/*'],
dest: '<%= pkg.name %>/'
}
},

replace: {
readme: {
src: ['release/<%= pkg.version %>/readme.txt'],
overwrite: true, // overwrite matched source files
replacements: [{
from: "[![Build Status](https://travis-ci.org/emrikol/focus.svg?branch=master)](https://travis-ci.org/emrikol/focus)\n\n",
to: ''
}]
}
},

// Bump plugin: grunt version:plugin:patch; grunt version:readme:patch
// Bump dropin: grunt version:dropin:patch
// Bump everything: grunt version::patch

version: {
readme: {
options: {
prefix: 'Stable tag:\\s*'
},
src: ['readme.txt']
},
plugin: {
options: {
prefix: 'Version:\\s*'
},
src: [ 'focus.php', 'includes/admin-page.php' ]
},
dropin: {
options: {
prefix: 'Version:\\s*'
},
src: [ 'includes/object-cache.php' ]
},
package: {
src: ['package.json']
}
},

} );

require( 'load-grunt-tasks' )( grunt );

grunt.registerTask( 'readme', [ 'shell' ] );
grunt.registerTask( 'release', [ 'clean', 'copy', 'replace', 'compress' ] );

grunt.util.linefeed = '\n';
};
5 changes: 3 additions & 2 deletions focus.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
/**
* Plugin Name: FOCUS Object Cache
* Plugin URI: http://wordpress.org/plugins/focus-object-cache/
* Description: A File-based Object Cache that is Utterly Slow. Persistenly caches WP_Cache objects in the file system. Can really help speed up a site that has fast disk access and slow database access.
* Version: 1.0.0
* Description: File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system.
* Version: 1.0.1
* Text Domain: focus-cache
* Author: Derrick Tennant
* Author URI: https://emrikol.com/
* GitHub Plugin URI: https://github.com/emrikol/focus/
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Network: true
*
* @package WordPress
*/
Expand Down
6 changes: 3 additions & 3 deletions includes/admin-page.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* Plugin Name: FOCUS Object Cache
* Name: FOCUS Object Cache
* Plugin URI: http://wordpress.org/plugins/focus-object-cache/
* Description: File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system
* Version: 1.0.0
* Description: File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system.
* Version: 1.0.1
* Text Domain: focus-cache
* Author: Derrick Tennant
* Author URI: https://emrikol.com/
Expand Down
4 changes: 2 additions & 2 deletions includes/object-cache.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Plugin Name: FOCUS Object Cache
* Name: FOCUS Object Cache
* Plugin URI: http://wordpress.org/plugins/focus-object-cache/
* Description: File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system
* Description: File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system.
* Version: 1.0.0
* Text Domain: focus-cache
* Author: Derrick Tennant
Expand Down
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "focus-object-cache",
"title": "FOCUS Object Cache",
"description": "File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system.",
"version": "1.0.1",
"homepage": "https://github.com/emrikol/focus",
"repository": {
"type": "git",
"url": "https://github.com/emrikol/focus"
},
"author": {
"name": "Derrick Tennant",
"email": "[email protected]",
"url": "https://emrikol.com"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-clean": "^1.1.0",
"grunt-contrib-compress": "^1.4.3",
"grunt-contrib-copy": "^1.0.0",
"grunt-shell": "^2.1.0",
"grunt-text-replace": "^0.4.0",
"grunt-version": "^1.1.1",
"load-grunt-tasks": "^3.5.2"
},
"license": "GPL-3.0"
}
28 changes: 23 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# FOCUS Cache
**Donate link:** http://wordpressfoundation.org/donate/
**Contributors:** emrikol
**Donate link:** http://wordpressfoundation.org/donate/
**Tags:** cache, caching
**Requires at least:** 4.3.11
**Tested up to:** 4.8
**Stable tag:** 1.0.0
**Stable tag:** 1.0.1
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system
File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system.


## Description

[![Build Status](https://travis-ci.org/emrikol/focus.svg?branch=master)](https://travis-ci.org/emrikol/focus)

I needed a persistent object cache while doing work on a budget hosting provider. A lot of the other file-based caching plugins were either bundled with other things I didn't need (W3 Total Cache), or were old and broken.
Expand All @@ -23,10 +24,27 @@ I've been heavily influenced by [redis-cache](https://wordpress.org/plugins/redi

## Installation

Install `object-cache.php` to `wp-content/object-cache.php` with a symlink, by copying the file, or via the settings page in the Tools menu.
Install like any other plugin, directly from your plugins page or manually by copying the files to the `plugins/` folder. Go to the plugin settings page at Settings->FOCUS Cache and click `Enable Object Cache`.


## Changelog


### 1.0.1

* Bugfix: Plugin was unable to be activated in the "Add Plugins" page. This was due to the fact that WordPress detected the wrong PHP file as the plugin and tried to activate it. Renaming the "Plugin Name" header from the PHP files in the `includes/` directory resolved the issue. Thanks to @ramonjosegn on the WordPress.org Support Forums for bringing this to my attention.
* Bugfix: The plugin is now required to be activated across all sites in a multisite installation.
* Readme updates.


### 1.0.0

First Version
First Version


## Upgrade Notice


### 1.0.1

The plugin can now be properly activated via the "Add Plugins" screen.
21 changes: 17 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ Donate link: http://wordpressfoundation.org/donate/
Tags: cache, caching
Requires at least: 4.3.11
Tested up to: 4.8
Stable tag: 1.0.0
Stable tag: 1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system
File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system.

== Description ==

[![Build Status](https://travis-ci.org/emrikol/focus.svg?branch=master)](https://travis-ci.org/emrikol/focus)

I needed a persistent object cache while doing work on a budget hosting provider. A lot of the other file-based caching plugins were either bundled with other things I didn't need (W3 Total Cache), or were old and broken.
Expand All @@ -21,10 +22,22 @@ I've been heavily influenced by [redis-cache](https://wordpress.org/plugins/redi

== Installation ==

Install `object-cache.php` to `wp-content/object-cache.php` with a symlink, by copying the file, or via the settings page in the Tools menu.
Install like any other plugin, directly from your plugins page or manually by copying the files to the `plugins/` folder. Go to the plugin settings page at Settings->FOCUS Cache and click `Enable Object Cache`.

== Changelog ==

= 1.0.1 =

* Bugfix: Plugin was unable to be activated in the "Add Plugins" page. This was due to the fact that WordPress detected the wrong PHP file as the plugin and tried to activate it. Renaming the "Plugin Name" header from the PHP files in the `includes/` directory resolved the issue. Thanks to @ramonjosegn on the WordPress.org Support Forums for bringing this to my attention.
* Bugfix: The plugin is now required to be activated across all sites in a multisite installation.
* Readme updates.

= 1.0.0 =

First Version
First Version

== Upgrade Notice ==

= 1.0.1 =

The plugin can now be properly activated via the "Add Plugins" screen.
Loading

0 comments on commit 5ed4fc8

Please sign in to comment.