How to clear cache so new field show up?

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

How to clear cache so new field show up?

Postby blange » Tue Feb 09, 2010 12:55 pm

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
blange
 
Posts: 6
Joined: Tue Feb 09, 2010 12:51 pm

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

Postby shannah » Tue Feb 09, 2010 2:15 pm

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

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

Postby blange » Tue Feb 09, 2010 3:09 pm

Thanks very much for the response. I will give that a try.
blange
 
Posts: 6
Joined: Tue Feb 09, 2010 12:51 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 24 guests

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