|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
tarmstrong Smarty n00b
Joined: 15 Feb 2016 Posts: 3
|
Posted: Thu Feb 27, 2020 8:00 pm Post subject: How to get the cache's file path |
|
|
Hi,
I'm trying to obtain the path of the cached copy of a webpage
Code: | $smarty->cache_dir = "smarty_cache_directory";
if($smarty->isCached("mytemplate.tpl")) {
$mypath = $smarty->cachepath("mytemplate.tpl");
print $mypath;
} |
In order words, I'd like to obtain the hash of "smarty_cache_directory/hash.mytemplate.html". Does the 'cachepath' property exist?
Thank you! |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sat Feb 29, 2020 8:35 am Post subject: |
|
|
What for? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|