The EuroCMS Cache Module

AuthorVersion
Imri Paloja1

This is a local cached example

The generated content of ECMS Themes, templates and Widgets can be cached, you can also delete those cached files, and regenerate them if needed.

Settings

  • Changed cached time.

  • Minify: CSS, JS, HTML, XML, JSON, ..., ...

  • Compress and resize images

  • View cached Sizes: per domain, theme, widget, file

  • Delete cached files for specific components: core, module, widgets

  • View cached sized per domain, and or components.

  • Disable caching per domain. This is useful when a domain is just a redirect to the main domain.

  • Disable caching per component

Folder structure

/engine/cache

  • example.nl/
    • themes/
      • Skeleton/ (theme name)
        • Skeleton/ (template name)
          • tutorials/
            • how-to-do-a-thing
            • how-to-do-a-thing-banner.png
            • portable-document-file.pdf
            • Skeleton.css.Skeleton.css (will be loaded inline)
    • W3schools/ (theme name)
      • band_page/ (template name) (template name)
        • tours/
          • Europe/
            • Amsterdam
              • Amsterdam-tour-2009.png
              • Registration.pdf
              • W3schools.css.band_page.css (will be loaded inline)
              • W3schools.js.band_page.js (will be loaded inline)

cache db structure

cache_iddomain_iduser_idgroup_idcomponent_typecomponent_namenameuser_lockstatus
1111themesskeletonSkeletoncached
1211corecontent/tutorials/how-to-do-a-thingoutdated
  • cached: This is already cached

  • outdated: The database contains newer information.


Reference

  1. https://cloudinary.com/blog/image_optimization_in_php

  2. https://www.google.com/search?q=PHP+compress+images

  3. https://www.w3schools.com/tags/tag_picture.asp