diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-27 23:24:23 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-27 23:24:23 -0700 |
commit | 52ecdcdff2ffd37760c0d0edbe7cd2fcc62a47fc (patch) | |
tree | 0942ba62aa201042f88ee7bb88bee43da11cf6f1 /modules/gallery/models/cache.php | |
parent | 4707a97b826b12958fda6d59d157726b246693cd (diff) |
Implemented a Database driver for the Kohana Cache library. Rather then writing our own caching algorithm, we can leverage the Kohana library. This has the added advantage of allowing the administrator to replace the default caching with a 3rd party caching algorithm.
Diffstat (limited to 'modules/gallery/models/cache.php')
-rw-r--r-- | modules/gallery/models/cache.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/gallery/models/cache.php b/modules/gallery/models/cache.php new file mode 100644 index 00000000..99e19a6e --- /dev/null +++ b/modules/gallery/models/cache.php @@ -0,0 +1,20 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2009 Bharat Mediratta + * + * 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 2 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class Cache_Model extends ORM {} |