If a not cached page is accessed for the first time, give an error message (EE cache is disabled from the control panel).
When this same page is accessed one more time, the page is well displayed, no error message.
How this problem could be solved ?
Using this CE Cache syntax for the main template:
{exp:ce_cache:it id="ce_principal" global="no" seconds="604800"}
{exp:stash:get name='main_content'}
{/exp:ce_cache:it}
(EE cache is disabled from the control panel)
Inside the CE Cache control panel page, if i want to see a cached page appears this error message:
Fatal error: Uncaught Error: Call to a member function hasModule() on null in /home/mysite/system/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php:1179 Stack trace: #0 /home/mysite/system/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(943): EllisLab\ExpressionEngine\Controller\Addons\Addons->getModule('ce_cache&S=1c17...')
1 [internal function]: EllisLab\ExpressionEngine\Controller\Addons\Addons->settings('ce_cache&S=1c17...',
'view_item', 'file&item=ce_ca...', '663b4b', 'global', 'js_main') #2 /home/mysite/system/ee/EllisLab/ExpressionEngine/Core/Core.php(241): call_user_func_array(Array, Array) #3 /home/mysite/system/ee/EllisLab/ExpressionEngine/Core/Core.php(110): EllisLab\mysite\Core\Core->runController(Array) #4 /home/mysite/system/ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
5 /home/mysite/www/admin.php(147): require_once('/home/cistosara.. in
/home/mysite/system/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php on line 1179