====== Template Caching ======
We affectionately refer to our template caching system as "AutoMagiCache". It's a whole mess of very exciting regular expressions that will automatically pull in a page from your server, rewrite and cache your paths and images, and store it on our server.
===== What It Does =====
- Pulls in target URL.
- Strips any tags.
- "Convenience replacements", currently converting "http" to "https" links for:
* Google Analytics
- Imports non-secure external CSS
* Rewrites all image paths (''*.jpg'', ''*.jpeg'', ''*.png'', ''*.gif'') to use FoxyCart image caching.
* Sticks it inline, inside CDATA comments.
- Imports non-secure external JS
* Replaces ''/ /'' with ''\/\/'' when not preceded by a space or line break.
* Replaces all '''' with ''<\/''.
* Sticks it inline, inside CDATA comments.
- Rewrites all ''
'' paths to use FoxyCart image caching.
- Rewrites all '''' paths to point to the correct locations.
- Rewrites all ''