===== clear-cache ===== ==== Summary ==== This directory holds a set of web pages to help web designers and editors manage caching for their websites. ==== Environment Expecations ===== This application is running on the server that is doing the caching. The htcacheclean tool is installed. The mod_cache_disk CacheRoot is in the default location for the Linux distro (CentOS or Debian). The user executing the PHP scripts is able to perform passwordless sudo. ==== Filesystem ==== |--clean-cache/ |--index.php ...DIY page for humans to clear a single URL - The URL is provided via a form with a text input |--cached-domains.php ...DIY page for humans to view all domains in the local disk cache, and clear all URLs for a chosen domain |--cached-domain.php?domain=example.com ...DIY page for humans to view all URLs for the domain given as a query string parameter, and clear individual URLs for that domain |--clear.php ...App for plugin () |--wcer-left-soe-long.png ...header image |--api/ |--|--actions.php ...AJAX/API endpoint to perform various tasks. Expects requests with JSON. Responds with JSON. |--css/ | |--layout.css ...styles for theme layout | |--screen.css ...styles for page content | |--table-odd-even.css ...styles for page content | |--undohtml.css ...undo default browser stylings |--includes/ |--|--CacheClearDomain.lib.php ...Model class to encapsulate the info we need for a cached domain | |--cache-clearing.lib.php ...PHP functions for this application |--js/ |--cache-clear-utils.js ...Custom utilities and event binding/handling for the DIY pages. |--verify.js ...warn when no element is picked [2024-03-07]