SpamBlocker

Spam Blocker is a CakePHP Behavior that automatically before after a comment is made. Each comment is tested upon a point system to determine if it should be approved, set to pending (high points), or marked as spam / deleted (low points).

Table of Contents
Version: 2.0
Requires: PHP 5.2, CakePHP 2.0
Tested On: PHP 5.3, CakePHP 2.0.3
Commit Hash: c497494811
Released: Nov 21st 2011, 23:39



CacheKill

Version: 2.0 (logs)
Package: Shell: Cache Cleanup
Category: CakePHP
Views: 608
Permalink - Tinylink

A CakePHP shell that can delete a single item or all items within a cache configuration.

Class Features:
  • Deletes cache through an SSH shell
  • Can pass parameters for the configuration and cache key
  • Can delete all cached items within a configuration


Top

1 - Usage


Begin by placing the shell in your Console/Command folder. Once placed, open up your command line and run the cache_kill command for your CakePHP application.

cake cache_kill -app /path/to/your/app -key <key> -config <config> -check <check>


You can pass the following parameters in the console:

  • key - The name of the single cache item to delete, defaults to empty (all cache will be removed)
  • config - The cache configuration to use, defaults to "default"
  • check - Should the timestamp be checked before deleting, defaults to 0 (must be 0 or 1)
Top

2 - Commands


Delete all cache within "default" config or the "sql" config.

cake cache_kill
cake cache_kill -config sql


Delete the key "cache_test" within the "sql" config.

cake cache_kill -key cache_test -config sql


Delete all cache while checking timestamps (doesn't work on single key deletions).

cake cache_kill -check 1

Read the whole documentation? Download the script now and try it yourself! Return to the Top