akeeba / panopticon

Self-hosted site monitoring and management
GNU Affero General Public License v3.0
42 stars 20 forks source link

Improve update installation #803

Closed nikosdion closed 3 weeks ago

nikosdion commented 2 months ago

Clear OPcache

A lot of people have hosts with unrealistic OPcache settings and refuse to accept the reality that OPcache needs to be reset whenever you update software installed on your site.

We can work around that by replacing the simple unzipping of archives with our own code which runs opcache_invalidate() on each PHP file extracted – just like we've done for Akeeba Solo, and in Joomla Update itself.

The downside is that updating from the command line is not compatible with this approach, so we'll have to improvise something.

Remove compiled templates

The tmp/compiled_templates folder may contain old versions of the compiled view templates which are not automatically updated upon update.

Remove that entire folder automatically on update to force regeneration of compiled view templates.