Community Add-Ons

Maintainers: wdepot
Add file to this package
Top » Features

Configuration Cache for osCommerce 2.3
for osCommerce Online Merchant v2.3

Creates a php cache file with all configuration variables defined to save a bit of time loading them all from the database with every page load. If the cache file isn't present or fails to return the proper success message the configuration defines are loaded from the database as usual. The cache file is automatically updated every time admin updates a configuration or module setting.

Legend:  Download   Report

Expand All / Collapse All

Configuration Cache for osCommerce 2.3 wdepot 2 Apr 2015  

Updated the configuration cache function file to fix a problem with slashes being added where they aren't needed or wanted. Replaced the addslashes function with a str_replace that changes only backslashes and single quotes to slashed. I realized after posting the correctionyesterday that backslashes also need to be escaped and not just the single quotes since a backslash in the wrong position (at the end of the configuration value right before the closing single quote of the define) would play havoc with the created PHP file.

Complete install enclosed but only admin/includes/functions/configuration_cache_write.php has changed.

Configuration Cache for osCommerce 2.3 wdepot 1 Apr 2015  
Configuration Cache for osCommerce 2.3 wdepot 26 Apr 2014  
Configuration Cache for osCommerce 2.3 wdepot 27 Jun 2013