class/cache.php 1 location
|
@@ 314-322 (lines=9) @@
|
311 |
|
* @param string $rule |
312 |
|
* @return string |
313 |
|
*/ |
314 |
|
public function ChkCfgFileRule($rule) { |
315 |
|
if (2 > strlen($rule)) |
316 |
|
return("Cache rule is not defined or too short."); |
317 |
|
|
318 |
|
if (0 != (strlen($rule) % 2)) |
319 |
|
return("Cache rule {$this->aCfg['cache-file-rule']} may not right."); |
320 |
|
|
321 |
|
return ''; |
322 |
|
} // end of func ChkCfgFileRule |
323 |
|
|
324 |
|
|
325 |
|
/** |
class/cache/cache-file.php 1 location
|
@@ 96-104 (lines=9) @@
|
93 |
|
* @param string $rule |
94 |
|
* @return string |
95 |
|
*/ |
96 |
|
public function ChkCfgFileRule($rule) { |
97 |
|
if (2 > strlen($rule)) |
98 |
|
return("Cache rule is not defined or too short."); |
99 |
|
|
100 |
|
if (0 != (strlen($rule) % 2)) |
101 |
|
return("Cache rule {$this->aCfg['cache-file-rule']} may not right."); |
102 |
|
|
103 |
|
return ''; |
104 |
|
} // end of func ChkCfgFileRule |
105 |
|
|
106 |
|
|
107 |
|
/** |
src/Fwlib/Cache/Handler/File.php 1 location
|
@@ 106-117 (lines=12) @@
|
103 |
|
* @param string $rule |
104 |
|
* @return string |
105 |
|
*/ |
106 |
|
protected function checkFileRuleConfig($rule) |
107 |
|
{ |
108 |
|
if (2 > strlen($rule)) { |
109 |
|
return('Cache rule is not defined or too short'); |
110 |
|
} |
111 |
|
|
112 |
|
if (0 != (strlen($rule) % 2)) { |
113 |
|
return("Cache rule \"$rule\" may not right"); |
114 |
|
} |
115 |
|
|
116 |
|
return ''; |
117 |
|
} |
118 |
|
|
119 |
|
|
120 |
|
/** |