Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Do not store the 'mediaVersion' in the database #196

Closed
johanjanssens opened this issue Jul 7, 2015 · 0 comments
Closed

Do not store the 'mediaVersion' in the database #196

johanjanssens opened this issue Jul 7, 2015 · 0 comments
Milestone

Comments

@johanjanssens
Copy link
Member

Joomla stores a 'mediaVersion' in the database. The media version is used to force browsers to reload the CSS and JavaScript after a core update.

See : https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/version/version.php#L178

Instead of storing the media version in the database generate it on the fly and cache it per request. This saves at least one database query, responsible to load the extension table, and make the core less dependant on the database.

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

No branches or pull requests

1 participant