Hi everyone,
Just wondering what is wrong this this bit of code. It is not rebuilding the cache when we run it.
Any help is appreciated.
Thanks.
Just wondering what is wrong this this bit of code. It is not rebuilding the cache when we run it.
PHP:
<?php
$fileDir = '/var/www/html';
require($fileDir . '/src/XF.php');
XF::start($fileDir);
\XF::repository('XF:UserField')->rebuildFieldCache();
?>
Any help is appreciated.
Thanks.