Template cache problem

Archived from the Xataface Users forum.

vbwx — Wed Mar 23, 2011 8:51 am

First, I want to say that Xataface has saved me tons of work already! So, thanks for building this fantastic app.

Now I’m working on an action that creates a (single page HTML) report from a table (with relationships). I’m using the SkinTool directly here, so I can use custom Smarty templates, which, of course, I have saved in /intranet/templates. (My application is called Intranet).
The problem is that whenever I change something in those HTML templates, my changes are ignored and instead I get the cached file.
Unfortunately, I couldn’t find the mechanism that creates and loads the cached HTML files, but when I rename the templates_c directory (so that effectively the cache doesn’t exist anymore) everything works as it should.
I know, I could just delete the cache files but that is not an option due to FTP permissions. (And, strangely, I can’t delete them via PHP either…)

So, is there a way to force Dataface_SkinTool to refresh the cache?


shannah — Wed Mar 23, 2011 9:02 am

The clear_cache action should do this.
i.e.
index.php?-action=clear_cache

(I think it just does its job and shows a blank white screen). You can check and verify that the cached files are gone though.


vbwx — Thu Mar 24, 2011 4:14 am

Thanks for the quick answer.
By trying this I found out that apparently, there is a problem with the webserver’s file permissions. That must be why template changes are ignored in the first place…
Anyway, it’s good to know this action exists!