Now it doesn't try to clear the cache when it isn't a revision.

Added endpoint and secret constant to reset cache.