Page 1 of 1

How to clear cache so new field show up?

PostPosted: Tue Feb 09, 2010 12:55 pm
by blange
I have the basic configuration of Xataface set up for a single table. I've recently added a field to the mysql table. This field
is not showing up in the Xataface interface. Somewhere its obviously caching meta data about the table. As far as I can tell I have one
conf.ini file to work with. How do I get the cache updated?


Thanks,

-Brian

Re: How to clear cache so new field show up?

PostPosted: Tue Feb 09, 2010 2:15 pm
by shannah
It is most likely that it is using APC to cache the table defs. Xataface automatically detects if APC is installed and uses it if it is.

You can refresh the cache for the current table by adding --refresh-apc=1 to the end of your url. e.g.
index.php?-table=foo&-action=bar&--refresh-apc=1

If you would like to disable the use of APC altogether, you can add the following to the beginning of your index.php file:
Code: Select all
define('DATAFACE_EXTENSION_LOADED_APC',false);

Re: How to clear cache so new field show up?

PostPosted: Tue Feb 09, 2010 3:09 pm
by blange
Thanks very much for the response. I will give that a try.