Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added default cache overrides to certain models
  • Loading branch information
shama committed Oct 12, 2010
1 parent 0648d09 commit 9f7863c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/callback.php
Expand Up @@ -8,6 +8,7 @@
class Callback extends FreshbooksAppModel {
public $name = 'Callback';
public $displayField = 'event';
public $cache = array('duration' => '+1 days');
public $schema = array(
'callback_id' => array(
'type' => 'integer',
Expand Down
1 change: 1 addition & 0 deletions models/category.php
Expand Up @@ -8,6 +8,7 @@
class Category extends FreshbooksAppModel {
public $name = 'Category';
public $displayField = 'name';
public $cache = array('duration' => '+30 days');
public $schema = array(
'category_id' => array(
'type' => 'integer',
Expand Down
1 change: 1 addition & 0 deletions models/client.php
Expand Up @@ -8,6 +8,7 @@
class Client extends FreshbooksAppModel {
public $name = 'Client';
public $displayField = 'username';
public $cache = array('duration' => '+30 days');
public $schema = array(
'client_id' => array(
'type' => 'integer',
Expand Down
1 change: 1 addition & 0 deletions models/item.php
Expand Up @@ -8,6 +8,7 @@
class Item extends FreshbooksAppModel {
public $name = 'Item';
public $displayField = 'name';
public $cache = array('duration' => '+30 days');
public $schema = array(
'item_id' => array(
'type' => 'integer',
Expand Down
1 change: 1 addition & 0 deletions models/staff.php
Expand Up @@ -9,6 +9,7 @@
class Staff extends FreshbooksAppModel {
public $name = 'Staff';
public $displayField = 'username';
public $cache = array('duration' => '+30 days');

/**
* current
Expand Down
1 change: 1 addition & 0 deletions models/task.php
Expand Up @@ -8,6 +8,7 @@
class Task extends FreshbooksAppModel {
public $name = 'Task';
public $displayField = 'name';
public $cache = array('duration' => '+30 days');
public $schema = array(
'task_id' => array(
'type' => 'integer',
Expand Down

0 comments on commit 9f7863c

Please sign in to comment.