]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Introduced some wrapper functions, the extension for cache files is now .cache.php...
[mailer.git] / inc / wrapper-functions.php
index e20a4abd2139350827cf4f5e69ec2794cb233cc5..b315b3cb68f983d584eaede755498df46434deb6 100644 (file)
@@ -1793,6 +1793,18 @@ function getCachePath () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// "Getter" for cache_extension
+function getCacheExtension () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('CACHE_EXTENSION');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // "Getter" for WRITE_FOOTER
 function getWriteFooter () {
        // Is there cache?
@@ -3578,5 +3590,11 @@ function convertApiResponseToArray ($responseString, $keyDelimiter, $valueDelimi
        return $returned;
 }
 
+// Getter for full (generic) hash file name
+function getGenericHashFileName () {
+       // Return result
+       return sprintf('%s%s.%s%s', getPath(), getCachePath(), getFileHash(), getCacheExtension());
+}
+
 // [EOF]
 ?>