Compile the template and clear opcache works on 7.14.*?

Hello

Fixed PR: Close #9916 - Upgrade to Smarty 4 · SuiteCRM/SuiteCRM@c5ccd33 · GitHub

Old Code

/**
     * compile the template and clear opcache


     *
     * @param string $resource_name
     * @param string $compile_path
     * @return boolean


     */
    public function _compile_resource($resource_name, $compile_path)
    {
        if(parent::_compile_resource($resource_name, $compile_path)) {
            SugarCache::cleanFile($compile_path);
            return true;
        }
        return false;
    }

New Code

/**
     * clears compiled version of specified template resource,
     * or all compiled template files if one is not specified.
     * This function is for advanced use only, not normally needed.
     *
     * @param string $tpl_file
     * @param string $compile_id
     * @param string $exp_time
     *
     * @return boolean results of {@link smarty_core_rm_auto()}
     */
    public function clear_compiled_tpl($tpl_file = null, $compile_id = null, $exp_time = null)
    {
        return $this->clearCompiledTemplate($tpl_file, $compile_id, $exp_time);




    }

Will it clear opcache on 7.14.*?

Hello @pgr,

Any update?

sorry, I don’t really understand what this is about - but I don’t think it should be necessary to tweak this stuff. If something’s not working, I guess your problem is something else.

You should focus on not getting your cached files screwed up, instead of worrying about regenerating them.

This is a highly tested area of SuiteCRM, so it should really work, imho.