- remove triplle extension (.tpl.cache.php)
authorRoland Haeder <roland@mxchange.org>
Tue, 8 Apr 2014 19:19:12 +0000 (21:19 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 8 Apr 2014 19:19:12 +0000 (21:19 +0200)
- ignored only new cache files
- missed to use getPath() to generate FQFN (full-qualified file name) for template cache file

Signed-off-by: Roland H├Ąder <roland@mxchange.org>
.gitignore
inc/template-functions.php

index 7a13243..1fd8ead 100644 (file)
@@ -1,21 +1,20 @@
-/.cache
-/.project
-/.settings
-/core
+/.cache/
+/.project/
+/.settings/
+/core/
 DOCS/*.log
 DOCS/doxygen/*.tmp
-DOCS/doxygen/html
-inc/.secret
-inc/cache/*.cache
+DOCS/doxygen/html/
+inc/.secret/
 inc/cache/*.cache.php
 inc/cache/*.log
 inc/cache/*.rss
 inc/cache/.revision
-inc/cache/_compiled/email/*.cache
-inc/cache/_compiled/html/*.cache
-inc/cache/_compiled/xml/*.cache
+inc/cache/_compiled/email/*.cache.php
+inc/cache/_compiled/html/*.cache.php
+inc/cache/_compiled/xml/*.cache.php
 inc/cache/config-local.php
 inc/cache/sess_*
-/nbproject
+/nbproject/
 theme/org/css/aboutme.css
 contrib/seitwert_www_mxchange_org.pdf
index 56eb35d..5eb84e4 100644 (file)
@@ -1931,7 +1931,8 @@ function generateCacheFqfn ($prefix, $template) {
        if (!isset($GLOBALS['template_cache_fqfn'][$prefix][$template])) {
                // Generate the FQFN
                $GLOBALS['template_cache_fqfn'][$prefix][$template] = sprintf(
-                       '%s_compiled/%s/%s.tpl%s',
+                       '%s%s_compiled/%s/%s%s',
+                       getPath(),
                        getCachePath(),
                        $prefix,
                        $template,