Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensions settings and Joomla's cache #712

Open
amazeika opened this issue Aug 9, 2024 · 1 comment
Open

Extensions settings and Joomla's cache #712

amazeika opened this issue Aug 9, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@amazeika
Copy link
Member

amazeika commented Aug 9, 2024

When Joomla's cache is enabled, extension setting changes get saved BUT Joomla's cache is not renewed. This is most likely because when we save settings, these are updated using a model entity instead of the Joomla API for this matter.

We should take a closer look at this and at the very least attempt to invalidate the config cache after updating the extension settings.

Support tickets

@amazeika amazeika added the bug label Aug 9, 2024
@amazeika amazeika added this to the 5.1 milestone Aug 9, 2024
@amazeika amazeika self-assigned this Aug 9, 2024
@jebbdomingo
Copy link
Member

jebbdomingo commented Aug 27, 2024

@amazeika We can clean the system cache after editing the config.

$this->addCommandCallback('after.edit',   '_clearCache');

protected function _clearCache()
{
      JFactory::getCache('_system', 'output')->clean();
}

and also in the installer helper

protected function _clearCache()
{
      ...
      JFactory::getCache('_system', 'output')->clean();
      ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants