Commit graph

23 commits

Author SHA1 Message Date
Joshua Sherman
c9f39e2e18 Updated email address 2014-01-20 15:19:38 -05:00
Joshua Sherman
200988eecf Swapped all array() for the shorthand []
Also finished up coverage on the Cache class.
2014-01-15 14:09:54 -05:00
Joshua Sherman
6257f89b18 Added most of the Cache tests
Dropped some unnecessary try/catch blocks and updated the Database class to
not use any data sources that lack a driver.
2014-01-14 02:19:40 -05:00
Joshua Sherman
8fc726b983 Updated copyright date.
It's a new year, figured it would be nice to get this done before summer time
like most years.
2014-01-05 13:44:25 -05:00
Joshua Sherman
ec4d771440 Expanded sanity check to hopefully pass tests
Travis is failing and barking about an undefined index "cache". Found the one place I'm referencing it without checking it first and added an isset(). Not failing locally so perhaps it's an issue with PHP 5.5.6 in comparison to 5.5.7 or some other nuance I'm not aware of.
2013-12-30 18:11:42 -05:00
Josh Sherman
d96181c60f Q4 2013, seemed like a good time to update the copyright notices 2013-11-04 17:36:04 -05:00
Josh Sherman
6b41edf659 Moved default cache expiration to 1 day
Not quite ready to make the jump to no expiration, but 1 day has been serving me well for over a year now.
2013-09-15 12:38:32 -04:00
Josh Sherman
e02890b97a Checked server count before trying to close
Was throwing an error, probably should wrap it in a try/catch but better to suppress the action entirely
2013-03-07 15:48:08 -05:00
Josh Sherman
85e3119ed1 Reworked Cache to use a server pool
Updated the error handler to allow for better failover during connection errors. Even in a single server setup, still using addServer as it uses passive connections and eliminated the need for an open method.
2013-03-07 14:57:41 -05:00
Josh Sherman
a0074337a3 Reverted cache layer 2013-02-28 16:26:25 -05:00
Josh Sherman
026c8137e9 Added Redis support to Cache layer 2013-02-28 15:14:10 -05:00
Josh Sherman
6a1cf8c035 Working on the caching
Not sure how I got back on the master branch, meh.
2013-02-28 12:24:02 -05:00
Josh Sherman
684ff2fef1 Starting adding Redis support to Cache class 2013-02-26 18:24:43 -05:00
Josh Sherman
78a9d0dda5 Went back to connect
Adjusted server a bit, shouldn't need pconnect any longer
2013-02-19 19:28:28 -05:00
Josh Sherman
21a1b730e1 Switched to persistent memcached connections 2013-02-19 13:45:38 -05:00
Josh Sherman
a36d51bb1a Fixed Cache::delete() when passing an array of keys
Since get() allows you to pass an array and get all of the keys back, I assumed delete worked the same way. It does not.
2012-11-07 19:28:44 -05:00
Josh Sherman
8e7a8f15c7 Fixed issue with pulling multiple keys
Namespace / uppercasing the key wasn't taking into consideration that sometimes array's can be present.
2012-10-23 23:55:57 -04:00
Josh Sherman
99aa78b6fa Built in caching for primary key queries
Selects done against a primary key will automatically cache to Memcached (haven't tried it, but it should fail gracefully) indexed by the model name and the primary key ([NAMESPACE-]MODEL-PKEY). Any updates or deletes against the same primary key will purge the cache automatically. The major caveat here is the case of mass updates which would result in stale data. As it stands the data is being cached for a mere 5 minutes, so this multiple row update scenario would be short lived but ideally, I'll be pushing back the time to live on the cache and/or making it something that's configurable. If you have to do mass updates, you're probably doing them with a cronjob and should just be flushing all of the cache in that scenario (as it would be nearly impossible to detect the affected keys and purge them all).
2012-10-23 23:30:04 -04:00
Josh Sherman
4a41a07635 Added namespace/prefix to the caching class
Closes #3 taking the issues down to zero :-O
2012-10-15 21:51:56 -04:00
Josh Sherman
6f114361bd Updated copyright, website and contact email 2012-09-30 12:40:29 -04:00
Josh Sherman
237cb22990 Added Cache class and made adjustments to Config to default the variables to false. 2011-10-30 17:14:56 -04:00
Josh Sherman
c2445d3a62 Removed Cache class.
* File was little more than just a stub file for the Cache class.

Removed Mailer class.

 * Attempting to remove non-critical classes from the system.

 * Class will be re-added / re-factored at a later date once the core of PICKLES is done.

Removed Security class.

 * Removing non-critcal classes from the system.

 * Security class was not very generic and will be replaced down the road once the security scheme is full realized.

Removed Form class.

 * Removing non-critcal classes from PICKLES to help the rewrite efforts.

 * Form class would take a database table and convert it into a webform.  Nice script, but really had no place in PICKLES.

 * Eventually will replace with a generic HTML form element generation class.

Added INSTALL file.

Updated derivation of the hostname.

 * Hostname is now defaulted in the class variable definition.

Refactoring Controller and Module
2010-03-11 23:19:33 -05:00
Josh Sherman
d3f7e6734c Committing any outstanding changes so that I can work on PICKLES from my laptop.
git-svn-id: http://svn.cleancode.org/svn/pickles@112 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-04-05 20:56:04 +00:00