ApiCallCache   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 1
1
<?php
2
3
/**
4
 * Cache component solely for cached API calls. By extending cachePath, we can 
5
 * flush this cache using flush() without affecting the main application cache.
6
 *
7
 * @author Sam Stenvall <[email protected]>
8
 * @copyright Copyright &copy; Sam Stenvall 2013-
9
 * @license https://www.gnu.org/licenses/gpl.html The GNU General Public License v3.0
10
 */
11
class ApiCallCache extends CFileCache
12
{
13
14
	public function init()
15
	{
16
		$this->cachePath = Yii::app()->getRuntimePath().DIRECTORY_SEPARATOR.'apiCallCache';
17
		
18
		parent::init();
19
	}
20
21
}