I have a page I use to do some redirects:
<mvt:assign name="l.header" value="miva_output_header( 'Status', '301 Moved Permanently' )" />
<mvt:if expr="g.Product_Code EQ 'GO-2-EC-1501'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/system-1501-chem-bake-1-step-31.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-EC-1201'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/system-1201-one-step-direct-to-metal-door-coating.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-AXA-HGD'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/axalta-imron-polyurethane.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-EC-1202-01'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/chem-bake-8000-xlt-1-gal.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-EC-1202-05'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/chem-bake-8000-xlt-5-gal.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-EC-4001-01'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/system-401-endura-crylic-self-storage-roll-door-paint.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-EC-4001-05'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/system-401-endura-crylic-paint-to-restore-self-storage-doors.html')" />
</mvt:if>
I saw the Redis cache section - currently not enabled- and was wondering if this can be used to cache a page like this in memory, so that redirects would happen faster? It isn't terribly slow and this is not critical, I just see the Redis caching option and wonder if it could be used - aka fast is good, faster is better, fasterer is betterer.
<mvt:assign name="l.header" value="miva_output_header( 'Status', '301 Moved Permanently' )" />
<mvt:if expr="g.Product_Code EQ 'GO-2-EC-1501'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/system-1501-chem-bake-1-step-31.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-EC-1201'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/system-1201-one-step-direct-to-metal-door-coating.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-AXA-HGD'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/axalta-imron-polyurethane.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-EC-1202-01'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/chem-bake-8000-xlt-1-gal.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-EC-1202-05'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/chem-bake-8000-xlt-5-gal.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-EC-4001-01'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/system-401-endura-crylic-self-storage-roll-door-paint.html')" />
<mvt:elseif expr="g.Product_Code EQ 'GO-2-EC-4001-05'">
<mvt:assign name="l.header" value="miva_output_header( 'Location', 'https://www.allfrom1supply.com/system-401-endura-crylic-paint-to-restore-self-storage-doors.html')" />
</mvt:if>
I saw the Redis cache section - currently not enabled- and was wondering if this can be used to cache a page like this in memory, so that redirects would happen faster? It isn't terribly slow and this is not critical, I just see the Redis caching option and wonder if it could be used - aka fast is good, faster is better, fasterer is betterer.
Comment