Ning Developer Network

Mike Nicholson

Configuration Caching

Introduction

For better performance we cache many files on your social network. You won't notice this most of the time, but do need to be aware of it when working with files in any of the following locations:

  • the contents of the instances/*/widget-configuration.xml files
  • the contents of the xn_private/*-widget-configuration.xml files
  • the paths to all widget/*/lib/*.php files
  • the paths to all widget/*/models/*.php files

This will obviously impact you the most while developing new features for your social network. Specifically you'll observe cached data in either of these cases:

  • Manual edits to the widget-configuration.xml files located in sub directories of /instances.
  • Added model files to existing or new Ning Web Widget Framework widgets.

Clearing Your Cache

If you're only making a few changes, clearing your cache manually is the easiest way to proceed. After you've made manual changes to any of the cached files, you can clear the cache by following these steps:

  1. Log into your social network as the Network Creator
  2. Clear the cache by visiting http://examplenetwork.ning.com/lib/scripts/invalidateCache.php, replacing examplenetwork.ning.com with the domain name of your network.

On success you'll see the following:

Disabling the Cache

If you're making lots of changes or working on a new feature, you'll probably want to disable this cache entirely to save time. To do this simply changeXG_ConfigCachingApp::$cachingEnabled to false.

Last updated by Mike Nicholson Jul 2.

Documentation & Tips

© 2008   Created by Ning Developer Admin

Badges  |  Report an Issue  |  Privacy  |  Terms of Service