Cms cache for .twig files

Hi,

i have deleted a test_page.twig on Xibo\views and created a test_page2.twig in the same folder.

However the cms in the \test page shows again the content of the test_page.twig because its content is present in the Xibo\cache\c1 folder.

How this works? Can i delete manually all folders in Xibo\cache or is there some settings to avoid this behavior?

Thanks

That is interesting - as we are still in beta I have not yet enabled persistent caching of the templates and they should therefore be cleared with each change.

You can see this in /web/index.php where I pass debug = true to the Twig parser:

$twig->parserOptions = array(
    'debug' => true,
    'cache' => PROJECT_ROOT . '/cache'
);

You can safely delete the cache without negative side effects - it will just regenerate… although as I say, I am confused as to why it isn’t doing that anyway.

Ok Dan,

if i comment this row:

//    'cache' => PROJECT_ROOT . '/cache'

the cms shows the correct content of the new page.

Thanks

1 Like