Ich habe eine Seite mit statischen Seiten (Multilanguage) und einer Kacheaction. < /p>
Der Cache erkennt die Sprache nicht und zwischen der Seite in der firestischen Sprache. Idee, wie man löst (ein Teil aus dem Deaktivieren des Cache?)
Danke,
Massimo < /p>
Code: Select all
class PagesController extends AppController {
/**
* This controller does not use a model
*
* @var array
*/
public $uses = array();
public $helpers = ['Cache','AbTest.AbTest'];
public $cacheAction = '1 month';
public $components = array('AbTest.AbTest');
< /code>
...ell>
if ($locale && file_exists(APP . 'View' . $theme_path . DS . $this->viewPath . DS . $locale .DS. implode('/', $path) . $this->ext ))
{
array_unshift($path,$locale);
}
try {
$this->render(implode('/', $path));
} catch (MissingViewException $e) {
if (Configure::read('debug')) {
throw $e;
}
throw new NotFoundException();
}