Template cache problem

A place for users and developers of the Xataface to discuss and receive support.

Template cache problem

Postby 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. :D

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?
vbwx
 
Posts: 3
Joined: Wed Mar 23, 2011 8:33 am

Re: Template cache problem

Postby 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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Template cache problem

Postby 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!
vbwx
 
Posts: 3
Joined: Wed Mar 23, 2011 8:33 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 18 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved